Mikhael Bogdanov
73836928ef
Minor. Update folder suffix
...
Debug purpose
2019-04-18 13:24:57 +02:00
Ilya Chernikov
9900ac2462
Fix runtime compatibility with the obsolete script jvm eval config options...
...
also switch mainKtsTest to the mew option
2019-04-18 13:01:50 +02:00
Andrey Uskov
00c3550191
Add method 'addModuleDependencyIfNeeded' in order to keep
...
compatibility with AndroidStudio
#KT-31090 Fixed
2019-04-18 13:32:48 +03:00
Dmitry Gridin
9d3ebf4562
Minor: refactoring ReplaceJavaStaticMethodWithKotlinAnalogInspection
2019-04-18 15:33:48 +07:00
Dmitry Gridin
3bed360c98
Fix "Should be replaced with Kotlin function" warnings
2019-04-18 15:28:52 +07:00
Dmitry Gridin
d738a12b86
Fix false positive ReplaceJavaStaticMethodWithKotlinAnalog for java.io.PrintStream
2019-04-18 15:28:52 +07:00
Dmitry Gridin
fd47dc9b88
Replace popup with several quick-fixes in ReplaceJavaStaticMethodWithKotlinAnalog
2019-04-18 15:28:52 +07:00
Dmitry Gridin
ee304e92b5
Add Java Arrays.asList, Set.of, List.of to ReplaceJavaStaticMethodWithKotlinAnalogInspection
...
Relates to #KT-27782 #KT-21641
2019-04-18 15:28:52 +07:00
Dmitry Gridin
b5b5723ec3
Rename ReplaceJavaStaticMethodWithTopLevelFunctionInspection to ReplaceJavaStaticMethodWithKotlinAnalogInspection
2019-04-18 15:28:52 +07:00
Dmitry Gridin
23003c5d1a
Add Java compare to ReplaceJavaStaticMethodWithTopLevelFunctionInspection
2019-04-18 15:28:51 +07:00
Dmitry Gridin
7f3c4a21d5
Add Java toString to ReplaceJavaStaticMethodWithTopLevelFunctionInspection
2019-04-18 15:28:51 +07:00
Dmitry Gridin
6afc0367c0
Merge ReplaceJavaIntegerToStringWithMemberInspection and ReplaceJavaStaticMethodWithTopLevelFunctionInspection
...
Relates to #KT-12721
2019-04-18 15:28:51 +07:00
Dmitry Gridin
6b7f4dda31
Merge ReplaceArraysCopyOfWithCopyOfInspection and ReplaceJavaStaticMethodWithTopLevelFunctionInspection
...
Relates to #KT-23023
2019-04-18 15:28:51 +07:00
Dmitry Gridin
50b89dd587
Add more cases for ReplaceJavaStaticMethodWithTopLevelFunction from java.lang.Math
2019-04-18 15:28:51 +07:00
Sergey Rostov
69120c0614
JPS build: note about updating artifacts configuration when updating bootstrap version
2019-04-18 10:36:22 +03:00
Sergey Rostov
30d1cc51bf
JPS Build: update artifacts
2019-04-18 10:36:22 +03:00
pyos
b23f2a4dbb
JVM_IR: set ConstantValue on static final primitive fields
2019-04-18 09:16:32 +02:00
Mikhael Bogdanov
14485c0e33
Switch default for parallel execution
2019-04-18 08:33:02 +02:00
Ilmir Usmanov
dc821a720b
Fix test data
2019-04-18 01:13:01 +03:00
Ilmir Usmanov
a793055ec2
Check variables, captured by outer object when searching for suspend crossinline parameters
2019-04-18 01:12:58 +03:00
Ilmir Usmanov
7c14f4c6ae
Do not duplicate $$forInline counterpart of inline capturing function
2019-04-18 01:12:56 +03:00
Ilmir Usmanov
20b9d8b2f3
Generate state-machine even if the object is going to be transformed
...
This fixes Java interop of inline functions, which use coroutines.
However, we cannot transform the state-machine. Thus, we generate
a $$forInline counterpart for suspend functions (similar to inline
suspend functions) and invokeSuspend$$forInline for lambdas if these
coroutines are going to transformed (i.e. are declared inside inline
functions).
During transformation we just skip method with state-machine and
transform the $$forInline counterpart. Of course, if inline site is
inline itself, we generate both state-machine version (which will be
dropped during the next transformation) and $$forInline version.
Consequently, the final version of the coroutines will not have
$$forInline counterpart.
Unfortunately, since CompileKotlinAgainstInlineKotlin tests do not allow
java sources, the tests for the interop are usual box tests.
#KT-30707 Fixed
2019-04-18 01:12:52 +03:00
Mikhail Zarechenskiy
fe8bf98bce
Fix project compilation against bootstrap compiler
...
Follow-up of 705a8a22 , there were several usages of SAM conversions
for Kotlin functions
2019-04-17 23:11:05 +03:00
Ilya Chernikov
ada3edb222
Fix after rebase - adapting to the new idea plugin handling scheme
2019-04-17 22:03:59 +02:00
Ilya Chernikov
4b4186ecb2
Switch to coroutines 1.1.1
2019-04-17 22:03:59 +02:00
Ilya Chernikov
7c4efb2772
Disable ScriptingGradleSubplugin if applied in the gradle prior to 5.0
...
Allows to avoid limiting scripting infrastructure to languageVersion 1.2,
since kotlin compiler 1.3+ is bundled with gradle only starting from 5.0
2019-04-17 22:03:59 +02:00
Ilya Chernikov
72736d78e4
Drop blocking transitive dependencies following for gradle subplugins
...
fixes scripting subplugin usage, since it requires some dependencies now
2019-04-17 22:03:59 +02:00
Ilya Chernikov
f688bc5140
Add diagnostics for plugin classpath problems
2019-04-17 22:03:59 +02:00
Ilya Chernikov
8a8de052a3
Fix JSR-223 and scripting samples dependencies
2019-04-17 22:03:59 +02:00
Ilya Chernikov
60b3fa3b07
Fix embeddable host test
2019-04-17 22:03:58 +02:00
Ilya Chernikov
090dadce3e
Fix testdata - script extension hint is not generated anymore...
...
due to changes in the scripting initialization logic
2019-04-17 22:03:58 +02:00
Ilya Chernikov
64c3bcd9ab
Drop refactored-out frontend.script module
2019-04-17 22:03:58 +02:00
Ilya Chernikov
a65dafc37d
Move scripting support classes to the scripting compiler impl module
2019-04-17 22:03:58 +02:00
Ilya Chernikov
8df829a7cd
Move scripting-compiler-impl definition to another package...
...
to continue merging with the refactoring with further scripting improvements
2019-04-17 22:03:58 +02:00
Ilya Chernikov
f71cc4e480
Drop long deprecated legacy script annotations and resolvers support
2019-04-17 22:03:58 +02:00
Ilya Chernikov
4f135a5fe5
Move REPL implementations to the scripting compiler impl module
2019-04-17 22:03:57 +02:00
Ilya Chernikov
199b32cad7
Merge scripting-impl to scripting-compiler-impl module...
...
to continue merging with the branch with further scripting refactorings
2019-04-17 22:03:57 +02:00
Ilya Chernikov
a82b386d81
Add a new module for scripting compilation infrastructure...
...
add embeddable variant as well
2019-04-17 22:03:57 +02:00
Ilya Chernikov
4625468de7
Expose project environment from core env, to allow usages of plugins...
...
before core env construction. Refactor script evaluation extension to
this scheme.
Plus some refactorings of the logic of script/repl evaluation in K2JVMCompiler
2019-04-17 22:03:57 +02:00
Igor Yakovlev
1178e94f50
Fixed intentions that used not valid PSI
...
Fixed ConvertToMemberIntention and ObjectLiteralToLambdaIntention that are used PSI after lazy block reparse.
2019-04-17 20:26:23 +03:00
Igor Yakovlev
1f29b42cd3
KtBlockExpression as lazy reparseable node (KT-13841)
...
Changed KtBlockExpression to support LazyReparseable behaviour
Added LazyKtBlockExpressionTest
Added new BlockWrapper delegations
2019-04-17 20:26:15 +03:00
Kirill Shmakov
e774f3fe77
Update iOS template for XCode 10.2
...
Info.plist generated by default does not provide required bundle id key.
Added separated Info.plist and its usage is explicitly specified.
See KOTLIN-CR-2913.
2019-04-17 18:54:45 +03:00
Mikhael Bogdanov
b70ff30dc3
Don't generate bridge flag for defaults in JVM IR backend
2019-04-17 14:53:30 +02:00
pyos
115b1c6b6e
JVM_IR: force materialization of non-transparent block results
2019-04-17 14:14:21 +02:00
pyos
b1bba70e40
JVM_IR: elide static field initialization to default values
2019-04-17 14:14:21 +02:00
Mikhail Zarechenskiy
bcc8802014
[NI] Avoid constraints from expected type for effectively empty system
...
Expression will be checked against expected type later.
Theoretically, this is not very good, but it aligns with the old
inference, plus it helps avoiding multiple type mismatch diagnostics.
2019-04-17 12:55:12 +03:00
Mikhael Bogdanov
5dea14f4ce
Reuse already created temp folder from UsefulTestCase
2019-04-17 11:22:19 +02:00
Mikhael Bogdanov
0d3f03a15a
Support parallelization in another IDE tests
2019-04-17 11:22:18 +02:00
Mikhael Bogdanov
18f76c31ca
Get rid of redundant UsefulTestCase
2019-04-17 11:22:18 +02:00
Mikhael Bogdanov
854b73b03c
Specify test runners for IDE tests
2019-04-17 11:22:17 +02:00