Mikhael Bogdanov
6c07dbf351
JVM_IR. Support type annotations
2020-01-29 16:59:55 +01:00
Vyacheslav Gerasimov
e4258e528f
Introduce internal property sourceMapBaseDirs for Kotlin2JsCompile
...
Separate property needed to prevent Gradle snapshotting absolute paths
as inputs when passed as compiler argument.
To reduce property visibility to external users put it to the impl class
which will make it invisible in completion but still usable in Kotlin
build.
2020-01-29 18:15:31 +03:00
Abduqodiri Qurbonzoda
b06645d1c0
Update number of reachable nodes because of MutableList.removeFirst/Last
2020-01-29 17:53:08 +03:00
Dmitriy Dolovov
9594b8db42
Rename Kotlin/Native modules for uniformity
2020-01-29 20:30:46 +07:00
Dmitriy Dolovov
abd86107d1
Include :native:frontend.native into kotlin-compiler.jar
2020-01-29 20:30:40 +07:00
Dmitriy Dolovov
25ff33cc3c
Update NativePlatformAnalyzerServices from Kotlin/Native repo
2020-01-29 20:30:35 +07:00
Dmitriy Dolovov
b49e6ac581
Rename :kotlin-native:kotlin-native-library-reader to :native:frontend.native
2020-01-29 20:30:29 +07:00
Mikhail Glukhikh
53d50c935a
[FIR] Do not use strict type equality in override checker
2020-01-29 15:58:12 +03:00
Mikhail Glukhikh
e43a57bdee
[FIR] Do not process constructors in super-type scopes
2020-01-29 15:58:04 +03:00
Mikhail Glukhikh
b4267558d7
[FIR] Fix constructors aliased importing
2020-01-29 15:57:47 +03:00
Dmitry Petrov
bf9673a0a2
PSI2IR: SAM conversion should be performed once for index variables
...
Given esoteric code as in 'caoWithAdaptationForSam.kt', we should make
sure that we pass same objects to 'get' and 'set'.
2020-01-29 15:30:07 +03:00
Mikhail Zarechenskiy
e750528551
Fix project compilation against bootstrap compiler
...
This is needed after e3b6104489
2020-01-29 15:25:22 +03:00
Svyatoslav Kuzmich
091e8495cd
[JS IR] Use util-klib tool to filter klib in JS IR gradle plugin
2020-01-29 15:22:07 +03:00
Stanislav Erokhin
e3225469b5
Fix typo in Copyright since year
2020-01-29 15:01:23 +03:00
Toshiaki Kameyama
ebe3619251
KT-33384 Intention to switch between single-line/multi-line lambda ( #2790 )
...
Add intention for single-line lambda <-> multi-line lambda conversion
#KT-33384 Fixed
2020-01-29 12:32:26 +03:00
David Schreiber-Ranner
f94d026e64
Retrieve outputFile from KotlinWebpack task
2020-01-29 12:15:04 +03:00
David Schreiber-Ranner
ae22dc352c
Fix file components order
...
The path of the webpacked JavaScript file that should be included in the server JAR is constructed by taking the webpack tasks output directory, and appending the filename of the JavaScript module. Previously, the constructor arguments were flipped, leading to an invalid path.
2020-01-29 12:15:04 +03:00
Mikhail Zarechenskiy
a8edd08121
[NI] Do not rely on a key that returns non-substituted types
2020-01-29 11:43:15 +03:00
Mikhail Zarechenskiy
e42f16c95c
[NI] Fix construction of common system for builder inference
2020-01-29 11:43:15 +03:00
Mikhail Zarechenskiy
e3b6104489
[NI] Map vararg to Array if it's resolved against type variable
...
While this behavior is questionable, it's consistent with OI and can
be changed in future
#KT-36201 Fixed
2020-01-29 11:43:14 +03:00
Mikhail Zarechenskiy
35f6810b58
[NI] Do not incorporate constraints that are needed only for nullability
2020-01-29 11:43:13 +03:00
Mikhail Zarechenskiy
ce690d8a1d
Add test for obsolete issue
...
#KT-36121 Obsolete
2020-01-29 11:43:11 +03:00
Denis Zharkov
e725f255f1
FIR: Share the same ScopeSession instance between phases
...
^KT-34563 Fixed
2020-01-29 11:31:57 +03:00
Denis Zharkov
280fb94774
FIR: Cache file importing scopes
2020-01-29 11:31:57 +03:00
Denis Zharkov
0b2b23189a
FIR: Cache default importing scopes
2020-01-29 11:31:57 +03:00
Denis Zharkov
95084a5312
FIR: Minor. Inline unused parameter in FirDefaultStarImportingScope
2020-01-29 11:31:57 +03:00
Dmitriy Dolovov
3b33df6564
Reduce external dependencies in :kotlin-native:kotlin-native-library-reader
2020-01-29 15:29:49 +07:00
Dmitriy Dolovov
1b472b6b12
Move KonanLibraryConstants out of :kotlin-native:kotlin-native-library-reader
2020-01-29 15:29:42 +07:00
Dmitriy Dolovov
cd71f250e5
Move KonanFactories out of :kotlin-native:kotlin-native-library-reader
2020-01-29 15:29:35 +07:00
Mikhail Glukhikh
3f95ac341c
[FIR] Implement SAM candidates discrimination
2020-01-29 11:09:28 +03:00
Ilya Gorbunov
c37a2d3dc3
Fix completion test: add coroutines-compat jar dependency
...
Related to KT-34582
2020-01-29 09:12:43 +03:00
Ilya Gorbunov
3bd3d61469
Test experimental coroutines version requirement on JVM only
...
Modify 'suspendFun' and 'nestedClassMembers' tests so that pre-release
suspend functions are tested only on JVM, where they are still supported.
2020-01-29 09:12:42 +03:00
Ilya Gorbunov
7792613f88
Finishing touch: drop experimental coroutines sourcesets from stdlib
...
#KT-36083
2020-01-29 09:12:42 +03:00
Ilya Gorbunov
c28710419a
Drop noStdLib coroutines tests
...
They were disabled anyway because coroutines can't be compiled without
the support API in stdlib
#KT-36083
2020-01-29 09:12:42 +03:00
Ilya Gorbunov
30bccc431b
Migrate tests to release coroutines
...
where it's not essential to use experimental ones
#KT-36083
2020-01-29 09:12:41 +03:00
Ilya Gorbunov
f465e7a957
Add coroutines-experimental-compat to idea plugin dist
...
It is required as a runtime dependency to instantiate async scripting
resolvers when importing Gradle 4.9 Kotlin DSL projects.
#KT-36083
2020-01-29 09:12:41 +03:00
Ilya Gorbunov
9f8e3dad33
Add coroutines-compat jar dependency to those tests that require it
...
#KT-36083
2020-01-29 09:12:40 +03:00
Ilya Gorbunov
cef81e11b7
Do not generate JS tests for experimental coroutines support
...
#KT-36083
2020-01-29 09:12:40 +03:00
Ilya Gorbunov
b5a0daabc3
Extract kotlin.coroutines.experimental API into compat artifact
...
Add public API dump for kotlin-coroutines-experimental-compat
#KT-36083
2020-01-29 09:12:39 +03:00
Stanislav Erokhin
075eea5a96
Update year and fix inconsistency with LICENSE.txt
2020-01-28 20:05:44 +03:00
Denis Zharkov
70ce63c8d4
FIR: Support rewritten implicit types calculator in IDE
...
Unlike the compiler, in the IDE different files may have different
resolve state.
So using ReturnTypeCalculatorForFullBodyResolve may be not correct there
2020-01-28 17:03:50 +03:00
Denis Zharkov
c6c773f6f9
FIR: Mark all dependencies' declarations as fully resolved
2020-01-28 17:03:50 +03:00
Denis Zharkov
dd51d5065a
FIR: Rename classes properly in FirImplicitBodyResolve.kt
2020-01-28 17:03:50 +03:00
Denis Zharkov
1cb18a73db
FIR: Get rid of old FirImplicitTypeBodyResolveTransformerAdapter
2020-01-28 17:03:50 +03:00
Denis Zharkov
f2abb57021
FIR: Introduce and use FirClass<*>::unsubstitutedScope
2020-01-28 17:03:50 +03:00
Denis Zharkov
6e8d67b96f
FIR: Simplify contract in FirScopeProvider::getUseSiteMemberScope
2020-01-28 17:03:50 +03:00
Denis Zharkov
de4bfb3973
FIR: Implement FirApplyInferredDeclarationTypesTransformer
2020-01-28 17:03:50 +03:00
Denis Zharkov
8e672222bb
FIR: Do not resolve implicitly typed function twice
2020-01-28 17:03:50 +03:00
Denis Zharkov
c295f2dc25
FIR: Reimplement implicit types calculator
...
Make it works through a single component tracking computation status
instead of storing it in the nodes
2020-01-28 17:03:50 +03:00
max-kammerer
f256547cc8
Revert "JVM_IR: Use direct field access instead of calling certain accessors."
...
This reverts commit 62f9e7a810 .
2020-01-28 14:55:56 +01:00