Mikhail Glukhikh
69ea0a3597
Fir broken FIR2IR test
2019-04-25 12:37:13 +03:00
Ilya Matveev
24588263ed
Store kotlin-native-shared version in the jar of the Gradle plugin
2019-04-25 16:19:11 +07:00
Ilya Matveev
c9ed648303
Use kotlin-native-shared in the Gradle plugin
...
The kotlin-native-shared artifact includes API allowing
us to work with K/N platforms, hosts, distribution etc.
This patch replaces a dependency on kotlin-native-utils
containing copies of such classes with a dependency on
published kotlin-native-shared in the Gradle plugin and
bundles kotlin-native-shared into the Gradle plugin jar.
2019-04-25 16:19:11 +07:00
Nicolay Mitropolsky
f118b007f0
Uast: more cases for KotlinUSimpleReferenceExpression resolve (KT-30957, KT-27385)
2019-04-25 10:07:09 +03:00
Simon Ogorodnik
9352d52e7e
FIR: load default value from meta-data
2019-04-25 09:47:38 +03:00
Simon Ogorodnik
879563233a
FIR: optimize caching in JVM deserializer
2019-04-25 09:47:37 +03:00
Simon Ogorodnik
f453e7df27
Improve error reporting in fir benchmark function
2019-04-25 09:47:37 +03:00
Simon Ogorodnik
a5ca8ffe69
Refactor FirSelfImportingScope
2019-04-25 09:47:37 +03:00
Simon Ogorodnik
f22cca5087
FIR top-level member scope: lookup constructors via classes
2019-04-25 09:47:37 +03:00
Simon Ogorodnik
9cf91738ea
Use local callables index in FirClassDeclaredMemberScope
2019-04-25 09:47:37 +03:00
Mikhael Bogdanov
11e0035254
Support test parallelization in uast tests
2019-04-25 08:09:27 +02:00
Mikhael Bogdanov
d1b5c76f09
Reuse KtUsefulTest case temporary files infrastructure
2019-04-25 08:09:26 +02:00
Svyatoslav Kuzmich
e30bdb8dc9
Fix hanling module names that require escaping
2019-04-25 03:54:17 +03:00
Ilya Chernikov
c3a439a829
Fix and refactor scripting subplugin application logic
...
so warning is not shown when discovery configuration is not populated
fix #KT-31124
refactor code for clarity on the way
also apply scripting subplugin after main plugin to ensure that
configurations are created before scripting is initialized
2019-04-24 17:27:47 +02:00
Ilya Chernikov
917fc56f36
Fix main-kts dependencies after extracting scripting
2019-04-24 17:27:03 +02:00
Ilya Chernikov
4b8d9c8fdd
Fix classloaders order on script evaluation
...
the dependencies one should be a parent for the modules one, to avoid
incompatibility problems. Also fixes main-kts tests
2019-04-24 17:27:03 +02:00
Anton Yalyshev
6ffc3a8679
bunch files update after master switched to 191
2019-04-24 17:23:47 +03:00
Anton Yalyshev
2329954e02
added capability to send a custom event's context
2019-04-24 17:23:22 +03:00
Anton Yalyshev
0255d66144
shortened class and function names and make them closer to actual FUS naming
2019-04-24 17:23:21 +03:00
Dmitry Gridin
9bd32eb3cb
Replace GradleBaseInspection with BaseInspection
...
#KT-31103 Fixed
2019-04-24 20:23:15 +07:00
Dmitry Gridin
0198df4935
PackageDirectoryMismatchInspection should report when a package statement is missing
...
#KT-13549 Fixed
2019-04-24 20:16:54 +07:00
Dmitry Gridin
2ae30de980
MoveVariableDeclarationIntoWhenInspection shouldn't report a multi-line variable
...
#KT-30457 Fixed
2019-04-24 20:12:44 +07:00
Sergey Igushkin
d456ae58b6
Remove usages of com.intellij.* utils from kotlin-build-common, KT-31106
...
As Gradle may under certain conditions reorder the buildscript
classpath artifacts, we need to ensure that the `kotlin-build-common`
module, which duplicates some of the classes that are shaded and packed
into `kotlin-compiler-embeddable`, does not call `com.intellij.*`
classes.
Replace the `com.intellij.*` utils that were called on the execution
path with our own implementations.
Issue #KT-31106 Fixed
2019-04-24 15:51:13 +03:00
Svyatoslav Kuzmich
09d7f4015b
Move test.kt stubs to smallRuntime
...
We already use kotlin.test with fullRuntime klib.
2019-04-24 13:06:59 +03:00
Svyatoslav Kuzmich
b0bd5802bb
Remove optionalExpectation hacks
...
Add common sources to Generate IR Runtime
2019-04-24 13:06:58 +03:00
Svyatoslav Kuzmich
1a6e6588fc
Fix: Use Vars instead of plain assignments for declaration imports
2019-04-24 13:06:58 +03:00
Ilmir Usmanov
c2884f3ca8
Optimize variable liveness analysis
...
During coroutines transformation, we analyse liveness of local variables
in order to decide whether we need to spill them or not.
This analysis contains hot method `useVar`, in which we previously
iterated over all variables in LVT. This is done, since these variables
are seen by debugger and we assume they are alice.
However, this variables can be generated by inliner. In this case, the
LVT's size in huge. I.e. we have loop in hot method.
By hoisting the liveness analysis of the LVT and combining its result
with result of usual liveness analysis, we achieve speed-up from 2m30s
down to 5s.
#KT-30603 Fixed
2019-04-24 13:04:40 +03:00
Steven Schäfer
f2392a6a28
Remove Concat and StringPlus intrinsics in favor of IrStringConcatenation.
2019-04-24 12:04:12 +02:00
Natalia Selezneva
26c9d69252
Check KotlinOutOfCodeBlockTracker in OutOfBlockModificationTest
...
General PsiModificationTracker.outOfCodeBlockModificationTracker was removed in IDEA 192
2019-04-24 11:45:03 +03:00
Natalia Selezneva
512a297e0a
Process property setter parameter in UAST
2019-04-24 11:39:17 +03:00
Natalia Selezneva
d45644cea4
Fix path to TestNG library in tests for 191
2019-04-24 11:39:17 +03:00
Nicolay Mitropolsky
1db7754298
A workaround for the IDEA-211491 in IDEA 191 to make Kotlin tests pass
...
for instance `InspectionTestGenerated$Inspections.testOverridingDeprecatedMember_inspectionData_Inspections_test`
2019-04-24 11:21:30 +03:00
Dmitriy Dolovov
d90b63d928
Improve logging in NativeCompilerDownloader
...
Issue #KT-31158 fixed
2019-04-24 14:17:16 +07:00
Dmitriy Dolovov
63f58b4a4a
Add applicability condition to KotlinNativeGradleConfigurator
2019-04-24 14:17:11 +07:00
Dmitriy Dolovov
e188c313e6
Fix: Add Native KLIBs as project-level libraries
...
Issue #KT-30966 Fixed
2019-04-24 14:17:03 +07:00
Sergey Rostov
cfa635b36a
JPS Build: update artifacts for scripting-compiler-impl and js ir backend
2019-04-24 09:45:23 +03:00
Sergey Rostov
aac564872c
Scripting, main-kts: temporary workaround to avoid IDE exceptions on Kotlin project
...
Exclude script definition from resources classpath to avoid IDE exceptions
on kotlin project. This is done by moving MainKtsScript to new `jar-resources`
folder which is not resource root.
#EA-127827
#KT-31176
2019-04-24 09:14:34 +03:00
Svyatoslav Kuzmich
bb3b9a935f
Command line interface
2019-04-23 23:19:12 +03:00
Roman Artemev
89500d776d
[IR BE] Don't use symbol table in SuspendFunctionLowering
2019-04-23 22:30:00 +03:00
Alexey Tsvetkov
bec5879e3a
Fix ABI plugin
...
It seems that I forgot to update compiler.pro.191,
so when we switched to IJ 191, ABI plugin has broken
2019-04-23 21:56:05 +03:00
nikita.movshin
deb416484c
Update copyright. Fix 2 lines comments after rebase
...
Change the copyright from "JetBrains s.r.o." to
"JetBrains s.r.o. and Kotlin Project contributors"
2019-04-23 20:15:03 +03:00
nikita.movshin
a6230c1e2a
Update copyright.
...
Change the copyright from "JetBrains s.r.o." to
"JetBrains s.r.o. and Kotlin Project contributors"
Update 1 line comment with dates from 2000 till 2017
2019-04-23 20:09:27 +03:00
nikita.movshin
86672df107
Update copyright.
...
Change the copyright from "JetBrains s.r.o." to
"JetBrains s.r.o. and Kotlin Project contributors"
Update TestGenerator.kt
2019-04-23 20:09:27 +03:00
nikita.movshin
abb7d3ab46
Update copyright.
...
Change the copyright from "JetBrains s.r.o." to
"JetBrains s.r.o. and Kotlin Project contributors"
Update 2 lines comment
2019-04-23 20:09:27 +03:00
nikita.movshin
a636e3d57d
Update copyright.
...
Change the copyright from "JetBrains s.r.o." to
"JetBrains s.r.o. and Kotlin Project contributors"
2019-04-23 20:09:23 +03:00
nikita.movshin
2e59fdc157
Update copyright.
...
Change the copyright from "JetBrains s.r.o." to
"JetBrains s.r.o. and Kotlin Project contributors"
Update apache.xml
2019-04-23 20:09:23 +03:00
nikita.movshin
65244b4bea
Update copyright.
...
Change the copyright from "JetBrains s.r.o." to
"JetBrains s.r.o. and Kotlin Project contributors"
Update only 2 lines copyright.
2019-04-23 20:09:22 +03:00
Vyacheslav Gerasimov
9f3495138f
Build: Use embedded configuration in kapt embeddable project
...
#KT-31047
2019-04-23 19:32:55 +03:00
Vyacheslav Gerasimov
82f9757138
Build: Fix dependency leak on :kotlin-compiler in kotlin-native-library-reader
...
Introduce mavenCompileScope to manage compile records in pom.xml
2019-04-23 19:32:55 +03:00
Vyacheslav Gerasimov
57cb59bfc7
Remove 181 related warnings from inspection profile
2019-04-23 17:28:41 +03:00