Victor Petukhov
0bed055fca
NI: small refactoring around TypeCheckerContext and adding new possible constraints
2020-05-27 16:39:31 +03:00
Victor Petukhov
d7f52e8b67
NI: do explicit incorporation of type of fixing type variable into other constraints
...
^KT-37380 Fixed
2020-05-27 15:44:03 +03:00
Ilya Chernikov
dec8eb7899
Revert renaming scripting plugin jar:
...
it conflicts with the compilation on daemon, so transistion should
be planned accordingly, and now it is not a good time for it.
The most important part of the renaming remains intact.
Partially reverts commit "Rename scripting libs and plugin - invert embeddable suffix"
2020-05-27 13:15:50 +02:00
Jinseong Jeon
18953c4717
FIR: transform resolved arrayOf call inside annotation to FirArrayOfCall
2020-05-27 11:38:34 +03:00
Jinseong Jeon
265d066878
FIR2IR: minor refactor to share IrVarargElement creation.
2020-05-27 11:38:32 +03:00
Jinseong Jeon
ff509bdcd3
FIR2IR: fix inverted types for array/element in arrayOf call.
2020-05-27 11:38:32 +03:00
Jinseong Jeon
b93868c30b
IR: migrate IrType utils about array element type.
2020-05-27 11:38:32 +03:00
Roman Artemev
49690fc620
[JS IR] Properly detect whether nested class is external
...
- Fix KT-38765
2020-05-27 10:49:57 +03:00
Denis Zharkov
5bb0085f7e
FIR: Fix test data after adba0a03a6
2020-05-27 10:29:46 +03:00
Mads Ager
9fa1614903
[JVM] Port line number tests to stepping framework.
...
Allow specifying JVM and JVM_IR as well as shared expectations.
Add the method name to the step.
Discard steps in synthetic methods.
2020-05-27 07:28:47 +02:00
Mikhail Zarechenskiy
4dbd4a56d5
Compose: adapt new API for intercepting candidates in call resolvers
...
Most part is made by @lelandrichardson
2020-05-27 01:42:48 +03:00
Vitaly
fe047f9b47
[JS BE] mutes tests for JS_IR_ES6, which muted for JS_IR
2020-05-27 00:32:56 +03:00
Vitaly
fe65045615
[JS BE] add es6 BE and relevant generated tests
2020-05-27 00:32:56 +03:00
Vitaly
adf6831d7f
[JS BE] implement es6-classes's codegen
2020-05-27 00:32:55 +03:00
Vitaly
90bcf8bf88
[JS BE] add es6LoweringPhase
2020-05-27 00:32:55 +03:00
Vitaly
fd25a5b3c8
[JS BE] es6: save instance after superCall
2020-05-27 00:32:55 +03:00
Vitaly
8c412adfaa
[JS BE] implement es6-classes lowering
2020-05-27 00:32:55 +03:00
Vitaly
be85b36025
[JS BE] add flag es6mode
2020-05-27 00:32:55 +03:00
Vitaly
9ede8445e7
[JS BE] add runtime-function and intrinsics for es6-classes
2020-05-27 00:32:54 +03:00
Dmitry Petrov
69fa067df9
Fix compiler bootstrap (1.4.0-dev-9205)
2020-05-27 00:28:58 +03:00
Yan Zhulanow
91c24605f2
Minimize changes in 202 bunch
2020-05-27 02:38:44 +09:00
Yan Zhulanow
46ac241e2f
202: Fix compatibility with 202 IDEA branch (code)
2020-05-27 02:38:44 +09:00
Yan Zhulanow
2044ece335
Kapt: Add DUMP_DEFAULT_PARAMETER_VALUES flag (KT-29355)
...
Put initializers on fields when corresponding primary constructor
parameters have a default value specified. The new behavior
is available under the new 'DUMP_DEFAULT_PARAMETER_VALUES' flag.
Note that this doesn't affect regular functions with default parameter
values, as well as primary constructor parameters without a
'val' or 'var' keyword.
2020-05-27 02:38:42 +09:00
Yan Zhulanow
c8bad15ba9
Fix EA-210182, check for context validity
2020-05-27 02:38:41 +09:00
Yan Zhulanow
ef698a5747
Fix "PSI/index mismatch" in case of @ParameterName on non-functional types (KT-34524)
2020-05-27 02:38:41 +09:00
Yan Zhulanow
38b6b73745
Add additional diagnostic for EA-225967
2020-05-27 02:38:39 +09:00
Dmitry Petrov
f81be526bc
Support deserialized IR in IfNullExpressionsFusionLowering
...
Deserializer generates simple branches instead of IrElseBranches.
2020-05-26 20:29:12 +03:00
Svyatoslav Scherbina
c9f721848a
Fix Throws declaration in Native diagnostics tests
...
Align annotation target with real declaration in Native stdlib
2020-05-26 20:24:35 +03:00
Svyatoslav Scherbina
fa152593ef
Fix false-positive @Throws error diagnostics in Native
...
Don't report
THROWS_LIST_EMPTY and MISSING_EXCEPTION_IN_THROWS_ON_SUSPEND
caused by unresolved arguments.
2020-05-26 20:24:34 +03:00
Svyatoslav Scherbina
242d0aa26e
Add Native diagnostics for @Throws suspend fun
...
`@Throws suspend fun` must have CancellationException accepted.
Also add more tests.
2020-05-26 20:24:32 +03:00
Svyatoslav Scherbina
3e8b0055ab
Decouple Call.hasUnresolvedArguments from ResolutionContext
2020-05-26 20:24:30 +03:00
anastasiia.spaseeva
9d862aaa1d
[Spec tests] Remove spec info from fir tests
2020-05-26 17:27:06 +03:00
anastasiia.spaseeva
5ba9d09278
[Spec tests] Fix fir test runner for spec tests
2020-05-26 17:27:06 +03:00
Ilya Chernikov
2509dfb287
Rename scripting libs and plugin - invert embeddable suffix
...
now regular, unshaded libs, are named with suffix `-unshaded`, while
former `-embeddable` ones named without any suffix. This will encoursge
use of the shaded libs by default, avoiding conflicts with 3-party
libs packed into the `kotlin-compiler`.
Note, that only the "frontline" libs are renamed to avoid switching
problems, the ones that not normally used directly are left as is,
including the `kotlin-compiler` itself.
2020-05-26 15:58:25 +02:00
Krasnoriadtseva Anastasiia
a55dec28b9
[FIR] Fix infinite CFG traverse
2020-05-26 15:30:45 +03:00
Roman Artemev
7644b4baec
[KLIB] Improve performance a bit
2020-05-26 14:41:49 +03:00
Roman Artemev
44dfae53f0
[IR BE] Add runtime compilation benchmarks for IR JS compiler
2020-05-26 14:41:49 +03:00
Roman Artemev
e6c855111e
[KLIB] Add flag to select between per-file and monolithic layout
2020-05-26 14:41:49 +03:00
Roman Artemev
444ecc0981
[PLUGIN API] Fix misprint
2020-05-26 14:38:18 +03:00
Roman Artemev
bc32688497
[PLUGIN API] Drop PureIrGenerationExtension
2020-05-26 14:38:18 +03:00
Juan Chen
adba0a03a6
[FIR] Create builtin primitive array types for properties
...
If the primary constructor has a vararg parameter, the corresponding
property has an array type. This commit creates the builtin array
types for such properties if the vararg element type is primitive,
e.g., CharArray instead of Array.
2020-05-26 14:08:47 +03:00
Dmitry Petrov
2f79b4c412
Add test for KT-34902
2020-05-26 11:59:05 +03:00
Mikhail Glukhikh
4455532210
JsIntrinsics: use createEmptyExternalPackageFragment
2020-05-26 11:50:55 +03:00
Mikhail Glukhikh
7818baff1e
[FIR2IR] Fix problem with double-generation of local class members
2020-05-26 11:50:33 +03:00
simon.ogorodnik
ac1769a474
[FIR2IR] Support SAM constructors
2020-05-25 21:24:39 +03:00
simon.ogorodnik
dbc564e74e
[FIR2IR] Approximate types for lambdas before passing to serialization
2020-05-25 21:24:39 +03:00
simon.ogorodnik
b92194229c
[FIR] Add fir copy function generation
2020-05-25 21:24:38 +03:00
pyos
76c34a07b2
JVM: use 1 as a synthetic line number for @InlineOnly lambdas
...
The source path already marks it as synthetic.
2020-05-25 20:03:56 +02:00
pyos
25e1fb8502
JVM: map synthetic line numbers through the SMAP
...
This is necessary so that IDEA does not ignore the line number.
2020-05-25 20:03:56 +02:00
pyos
d17a18f96d
JVM: do not write trivial SMAPs to classes outside inline funs
...
where trivial == those that map the file to itself.
2020-05-25 20:03:56 +02:00