Ilya Chernikov
a3217982f7
Fix script filename extension discovery from asm-readed class
...
and improve diagnostics on definition loading failure
2018-12-21 15:44:28 +01:00
Ilya Gorbunov
7c7c11e916
Fix current Kotlin version to avoid changing it in local builds
2018-12-21 17:21:50 +03:00
Shagen Ogandzhanian
6dd69ea3d6
Support named constructors in idl-backed code generation
...
this resolves https://youtrack.jetbrains.com/issue/KT-27361
2018-12-21 14:53:59 +01:00
Ilya Gorbunov
68f898153c
Fix link to sealed classes doc page
...
#KT-28829 Fixed
2018-12-21 16:25:43 +03:00
Marcin Moskala
686cfa6fd2
Fix common misspellings
2018-12-21 16:13:42 +03:00
Marcin Moskala
33961acb8d
Fix typos in spec-docs
2018-12-21 16:06:51 +03:00
Nikolay Krasko
5d08df1bf7
Remove ignore roots added by IdeaOpenApiClassFinder
...
Fixed in newer IDEA build.
2018-12-21 16:06:51 +03:00
Nikolay Krasko
9dd40cb904
Extract contributing guide for better GitHub integration
2018-12-21 16:06:51 +03:00
Nikolay Krasko
58b7277ea8
Update to 183.4886.37
2018-12-21 16:06:51 +03:00
Nikolay Krasko
f03a3945c5
Rethrow IndexNotReady exceptions without modifications
2018-12-21 16:06:50 +03:00
Ilya Gorbunov
614139755c
Minor: fix Random companion reference in docs
...
Random's companion is named 'Default' rather than 'Companion'
2018-12-21 14:17:25 +03:00
Ilya Chernikov
71729f8e8f
[minor] use psi original file if virtual file is not available...
...
for script dependencies, fixes completion tests
2018-12-20 17:09:24 +01:00
Ilya Chernikov
44ea2bf1d4
Introduce script names and location ids, use them in diagnostics and...
...
for virtual file names. Also fix compiled script serialization.
2018-12-20 17:09:23 +01:00
Ilya Chernikov
77095cb895
[minor] add missing dependency
2018-12-20 17:09:22 +01:00
Ilya Chernikov
e4f245d15a
Implement script dependencies collection tests
2018-12-20 17:09:22 +01:00
Ilya Chernikov
48965fb64a
[minor] refactor scripting tests: extract cli testdata into separate dir, remove annotation
2018-12-20 17:09:21 +01:00
Ilya Chernikov
c165666d94
Refactor core env: extract script compilation dependencies collection
2018-12-20 17:09:20 +01:00
Ilya Chernikov
8529ed314c
[minor] fix compilation - avoid proguarding of addToStdLib.kt
2018-12-20 17:09:20 +01:00
Ilya Chernikov
1e74ab5a62
Implement import test, fix import support in compiler and evaluator
2018-12-20 17:09:19 +01:00
Ilya Chernikov
fce68102bd
Implement imported scripts evaluation and construction
2018-12-20 17:09:18 +01:00
Ilya Chernikov
19a969a521
Implement script import support in the compiler
2018-12-20 17:09:17 +01:00
Ilya Chernikov
729ebcac9b
Implement simple "add to compilation" functionality for scripts
...
(incomplete import - scripts added to the compilation but not yet
imported into scope)
Base functionality needed for #KT-27960
2018-12-20 17:09:16 +01:00
Dmitry Petrov
57c12476d7
Provide parent reference for temporary variables immediately
2018-12-20 15:57:31 +03:00
Mikhael Bogdanov
4e53e7d663
Inline OPTIMIZATION_ASM_API_VERSION constant
2018-12-20 12:55:12 +01:00
Mikhael Bogdanov
026ac1bee6
Inline API constant
2018-12-20 12:55:11 +01:00
Mikhael Bogdanov
f900d598c7
Inline ABI_EXTENSION_ASM_API_VERSION
2018-12-20 12:55:10 +01:00
Mikhael Bogdanov
87d99907f6
Remove redundant proguard option
...
Removed option is covered by
-keep class org.jetbrains.org.objectweb.asm.Opcodes { *; }
2018-12-20 12:55:09 +01:00
Mikhael Bogdanov
c19c979b7d
Use last asm api for visitor construction
2018-12-20 12:55:09 +01:00
Mikhael Bogdanov
c2837cf7d9
Switch buildSrc to ASM7 Jetbrains ASM
2018-12-20 12:55:08 +01:00
Mikhael Bogdanov
2072d7806f
Switch kotlinp to ASM7 Jetbrains ASM
2018-12-20 12:55:07 +01:00
Alexander Udalov
f5ff3d2fa9
Remove directives that have no effect from bytecode text tests
...
All bytecode text tests are run with stdlib in the classpath and only
for JVM backend, therefore directives WITH_RUNTIME, TARGET_BACKEND,
IGNORE_BACKEND are not needed
2018-12-20 12:53:24 +01:00
Alexander Udalov
00caa23307
Do not support LANGUAGE_VERSION directive in codegen tests
...
Test data of crossinline_1_2.txt has changed because now we do not
automatically enable 1.2 (with _all_ of its features) when we're
executing a common coroutines test with old coroutines; and so the
NewCapturedReceiverFieldNamingConvention language feature (which is
introduced in 1.3) is now enabled in this test
2018-12-20 12:53:24 +01:00
Alexander Udalov
77c87fa6c9
Remove API_VERSION 1.3 from compiler tests
...
So that these tests will now check behavior on the latest API version
2018-12-20 12:53:23 +01:00
Alexander Udalov
37e1b486f4
Minor, remove obsolete API_VERSION directives
2018-12-20 12:53:23 +01:00
Alexander Udalov
d58cf4a83a
Minor, fix language versions in two diagnostic tests on coroutines
2018-12-20 12:53:23 +01:00
Alexander Udalov
a0a70dd60d
Remove LANGUAGE_VERSION from compileKotlinAgainstKotlin tests
...
Support test directives not at the beginning of the test file for
multi-file tests where separate files need separate language features
2018-12-20 12:53:23 +01:00
Alexander Udalov
ec2dd58165
Remove LANGUAGE_VERSION from codegen tests on coroutines
...
Use `// !LANGUAGE: -ReleaseCoroutines` instead in tests which require
old (1.2) coroutines, and nothing in tests which require new coroutines
because master is already 1.3. Also remove superfluous API_VERSION and
other directives which have no effect anymore. Do not include runtime
automatically with `WITH_COROUTINES`/`COMMON_COROUTINES_TEST` in box
tests; require `WITH_RUNTIME` for that (majority of tests already had it
anyway), but remove it from bytecode text tests where runtime is always
added automatically. Fix the coroutine package selection code in
KotlinTestUtils and update the bunch files correspondingly.
Disable tests in `box/coroutines/noStdLib` on JVM: despite the name,
these tests were launched with stdlib because of the code in
CodegenTestCase, and they do not work without it because at least
CoroutineUtil.kt requires stdlib to compile correctly
2018-12-20 12:53:23 +01:00
Alexander Udalov
5b58eb8491
Remove LANGUAGE_VERSION from non-coroutine codegen tests
...
Most of these tests used this directive as a way to opt in to a new
language feature, and most of those features are already stable for a
long time, so no opt-in is needed. Some other tests used the directive
to opt out from a language feature, replace those by the `LANGUAGE`
directive. One test used the directive to test behavior that actually
depended on the API version; use `API_VERSION` directive there instead.
2018-12-20 12:53:23 +01:00
Alexander Udalov
e3c381a298
Remove API_VERSION 1.3 from tests on JvmDefault
...
So that these tests will now check behavior on the latest API version
2018-12-20 12:53:23 +01:00
Alexander Udalov
9b6a52ccba
Remove LANGUAGE_VERSION from boxInline tests
2018-12-20 12:53:22 +01:00
Alexander Udalov
0871a3cc4d
Use API_VERSION instead of LANGUAGE_VERSION in IEEE754 tests
...
See `ExpressionCodegen.genEqualsForExpressionsPreferIeee754Arithmetic`:
the behavior here actually depends on the API version, not any language
feature
2018-12-20 12:53:22 +01:00
Alexander Udalov
83528a75be
Minor, fix typo in IEEE754 bytecode text tests
...
The runtime function in kotlin.jvm.internal.Intrinsics is called
"areEqual", not "areEquals"
2018-12-20 12:53:22 +01:00
Andrey Uskov
250eee48a1
Fix reimport of Kotlin projects created via wizard
...
#KT-27941 Fixed
2018-12-20 13:56:41 +03:00
Ilya Matveev
e520c98182
Fix K/N test for windows: rename target usage
2018-12-20 10:24:48 +03:00
Vyacheslav Gerasimov
95a3b337c6
Build: add instrumentation to all JavaCompile tasks
2018-12-19 20:59:34 +03:00
Vyacheslav Gerasimov
9ad899fb01
Fix splitExportedSuspendInlineFunctionDeclarations usages, argument must not be null
2018-12-19 20:43:15 +03:00
Mikhail Glukhikh
93882736ed
OverrideMemberChooserObject refactoring: introduce MemberGenerateMode
2018-12-19 19:56:16 +03:00
Mikhail Glukhikh
ca3d758fba
Create expect/actual class: fix inline class generation
...
#KT-28744 Fixed
#KT-28745 Fixed
2018-12-19 19:55:56 +03:00
Mikhail Glukhikh
d3a5b0dcd6
MPP JVM/JS wizard: fix classpath of 'run' task #KT-28869 Fixed
2018-12-19 19:55:40 +03:00
Mikhail Glukhikh
55666f3f03
MPP wizard tests: use 1.3.20-eap-25
2018-12-19 19:55:27 +03:00