Commit Graph

909 Commits

Author SHA1 Message Date
Mikhail Zarechenskiy eb76293fc7 Adapt facet, map coroutine settings on three keys
Original commit: 091756b221
2016-12-15 23:58:09 +03:00
Alexey Sedunov 85f851c7e2 Kotlin Facet: Add coroutine support setting
Original commit: 9460426d26
2016-12-15 23:58:08 +03:00
Stanislav Erokhin dc4493a544 Update test data for LookupTracker (removed package kotlin.coroutines from default imports)
Original commit: 509a504318
2016-12-15 23:57:54 +03:00
Mikhael Bogdanov cbd9018ac7 Temporary remove JVM_1_8 target from facet settings
Original commit: facee84020
2016-12-13 14:51:27 +01:00
Stanislav Erokhin e5a6d21783 Remove propertyDelegate and fix unused parameter checker for provideDelegate.
Original commit: dbe8edda5f
2016-12-12 23:14:09 +03:00
Stanislav Erokhin 28192d0a02 Rename toDelegateFor to provideDelegate.
Original commit: 9dc9fb578f
2016-12-12 23:14:07 +03:00
Stanislav Erokhin 89c17e9162 Minor. Update Lookup test data.
Original commit: db5250a614
2016-12-12 23:14:06 +03:00
Alexander Udalov 1b23daa333 Rename KotlinVersion->KotlinCompilerVersion, move to module util.runtime
Rename to avoid confusion with the recently added kotlin.KotlinVersion

Original commit: 414daef001
2016-12-07 21:11:15 +03:00
Denis Zharkov 5d60a8526f Support new suspend convention in JVM backend partially
Stack-unwinding does not work yet

 #KT-14924 In Progress

Original commit: 1f98accad2
2016-11-29 14:14:50 +03:00
Alexey Tsvetkov 0c205c38b9 Minor: fix test data
dummy.kt was added for Gradle test (it does not start otherwise).
Old IC recompiles this file, so new and old IC logs are different.

Original commit: 5eaa23ec60
2016-11-22 23:31:39 +03:00
Alexander Udalov 7ebb3e5918 Support "default platform" in IDE via facet settings
Original commit: 22e1221c75
2016-11-22 18:19:02 +03:00
Alexey Sedunov 29e90f9547 Kotlin Facet: Track configuration version
Original commit: 4613eed406
2016-11-22 11:54:07 +03:00
Dmitry Petrov 48b0259d9b Report error on non-top-level type aliases (unsupported in 1.1).
Get rid of nested type aliases in project.

Original commit: 4c47d77a9f
2016-11-21 10:25:51 +03:00
Alexey Tsvetkov 7ed13b9ecd Minor: add Throws(Exception) to avoid override issues in java
Original commit: 18d50b930d
2016-11-18 23:17:34 +03:00
Alexey Tsvetkov 765f02f9ac Ensure jps caches are always cleared in tests
Original commit: ea93ec3eec
2016-11-18 23:17:30 +03:00
Alexander Udalov 1521275a5d Rename JVMPlatform and JSPlatform and make them nested in TargetPlatformKind
To avoid confusion with JvmPlatform and JsPlatform from frontend.java and
js.frontend respectively

Original commit: 26a6ce9a31
2016-11-11 19:00:12 +03:00
Alexander Udalov 036f5ae0e0 Minor, rename targetPlatformKindKind -> targetPlatformKind
Original commit: d0f31a2bc2
2016-11-11 19:00:11 +03:00
Zalim Bashorov 77149c97f1 Regenerate tests
Original commit: 1dedb38481
2016-11-09 21:41:12 +03:00
Alexey Sedunov 77404d1501 Kotlin Facet: Use facet configuration to provide language version for IDE analyzer
Original commit: 30d08c989d
2016-11-07 20:03:30 +03:00
Alexey Sedunov f3b8b19325 Kotlin Facet: Use facet configuration in JPS build
Original commit: 6dd950cd5a
2016-11-07 20:03:29 +03:00
Alexey Sedunov e7aebcc451 Kotlin Facet: Get rid of copy constructors for compiler arguments/settings and use reflection-based copying instead
Original commit: d0de9dd43c
2016-11-07 20:03:29 +03:00
Alexey Sedunov 947a39f576 Kotlin Facet: Reuse JvmTarget and LanguageVersion in facet configuration
Original commit: a2948a624f
2016-11-07 20:03:28 +03:00
Alexey Sedunov a95fff6dec Convert to Kotlin: Compiler arguments/settings JPS serializers
Original commit: b6de7d3503
2016-11-07 20:03:27 +03:00
Alexey Sedunov 9bc4742202 Convert to Kotlin: Compiler arguments/settings JPS serializers (rename to .kt)
Original commit: 9e4fcf9731
2016-11-07 20:03:26 +03:00
Alexey Sedunov dd56ae957d Convert to Kotlin: JpsKotlinCompilerSettings.java
Original commit: b88573e6a8
2016-11-07 20:03:25 +03:00
Alexey Sedunov 140071e3d1 Convert to Kotlin: JpsKotlinCompilerSettings.java (rename to .kt)
Original commit: 7cb2f04d24
2016-11-07 20:03:24 +03:00
Alexey Sedunov 5c65266354 Refactoring: Move facet configuration classes to idea-jps-common module
Original commit: a6dbdbd3e5
2016-11-07 20:03:23 +03:00
Alexey Tsvetkov 9185cd4537 Gradle IC: treat companion object change as class signature change
Original commit: fc1af746c6
2016-10-28 17:58:10 +03:00
Alexey Tsvetkov 56a067cb1c Gradle IC: fix converting class to package facade
Original commit: f01a956a8b
2016-10-28 17:58:10 +03:00
Alexey Tsvetkov c86d06ae4f Gradle IC: support multifile classes
Original commit: 151cf7d073
2016-10-28 17:58:10 +03:00
Alexey Tsvetkov 45ea680ec8 Groundwork for using IC without Gradle
Original commit: 7c16d086aa
2016-10-28 17:58:10 +03:00
Alexey Tsvetkov 9ebc6a18a1 Refactoring: introduce IncReporter to report IC progress
Original commit: fafde1e948
2016-10-28 17:58:10 +03:00
Alexander Udalov 618b484874 Add mock runtime to KotlinJpsBuildTest test cases
To prevent test failures once the JVM compiler stops loading definitions of
built-in declarations from itself and starts to rely on their presence in the
library, that the compiled source code depends on

Original commit: 0b59c71340
2016-10-26 16:31:07 +03:00
Alexey Sedunov d0aabc9936 Kotlin Facet: Add compiler settings to facet configuration
Original commit: ea13456bba
2016-10-26 15:03:42 +03:00
Alexander Udalov 40e9bfffe6 Import classes from kotlin.coroutines by default, add to default imports in JS
Original commit: 6b6ddf5f75
2016-10-24 15:30:38 +03:00
Alexander Udalov 49750cee02 Extract platform-independent default imports to TargetPlatform.Default.defaultImports
This is needed because SourceNavigationHelper uses default platform and it
needs default imports to be able to resolve references (otherwise
NavigateToLibrarySourceTestGenerated breaks)

Original commit: 56e2173b3c
2016-10-21 17:10:39 +03:00
Alexander Udalov be828cd3cf Fix incremental recompilation of JvmMultifileClass with top level function
See 7a679eb and previous changes where this behavior was broken (this was
untested, however). Fixes EA-90065

Original commit: 7b2a80ffa4
2016-10-19 12:50:10 +03:00
Michael Bogdanov 1b59000669 Test data fix
Original commit: c5e8139236
2016-10-18 15:26:24 +03:00
Michael Bogdanov c5d50ce6d7 Fix for KT-14012: Back-end (JVM) Internal error every first compilation after the source code change
#KT-14012 Fixed

Original commit: d48ef2efc7
2016-10-18 10:46:51 +03:00
Ilya Chernikov d3e4da3719 Add remote input stream support, plus minor tweaks
Original commit: 042fc4fadc
2016-10-12 15:37:49 +02:00
Dmitry Petrov d324df7f20 KT-13961 REDECLARATION not reported on private-in-file 'foo' vs public 'foo' in different file
Private-in-file declarations conflict with public overload-equivalent declarations
in other files in the same package.

Move functions for grouping possible redeclarations to OverloadResolver
(since they are used only there).

Refactor redeclarations / conflicting overloads reporting.

Original commit: 06101dba52
2016-10-03 11:50:29 +03:00
Zalim Bashorov 8e0160b876 JPS: don't consider that the module is not Kotlin JS until check all libraries.
#KT-14082 Fixed

Original commit: 797f7ab28e
2016-09-29 14:52:51 +03:00
Alexander Udalov 866ea672d7 Allow data classes to implement equals/hashCode/toString from base classes
#KT-11306 Fixed

Original commit: fea116f14e
2016-09-15 16:45:48 +03:00
Alexey Tsvetkov 8c9bb043a2 Remove source annotations when copy class with kapt2
Writing source annotations enables incremental compilation for kapt2.
However they are not needed in bytecode, so we remove them when
copying classes.

# Conflicts:
#	compiler/cli/src/org/jetbrains/kotlin/cli/jvm/K2JVMCompiler.kt
#	compiler/frontend.java/src/org/jetbrains/kotlin/config/JVMConfigurationKeys.java

Original commit: 6ebb50751c
2016-09-14 13:52:56 +03:00
Yan Zhulanow 291bc0c42c Kapt: Provide SourceRetentionAnnotationHandler for incremental compilation.
Collect annotations with the "SOURCE" retention.
(cherry picked from commit 6ef66e7)

Original commit: 975364b2ed
2016-09-10 17:36:15 +03:00
Nikolay Krasko 3ad7521a54 Drop kotlin-bare-plugin (KT-11859)
Original commit: 9a54aa99fa
2016-09-02 13:41:24 +03:00
Stanislav Erokhin df295ddfc4 Set reference target and report custom error instead unresolved reference for cases: interface, generic parameter, object + invoke, class without companion.
#KT-2787 Fixed.

Original commit: bebc75c8ef
2016-09-01 18:01:55 +03:00
Yan Zhulanow cd09fdd2be Kapt: Analyze sources again if the received analysis result is 'RetryWithAdditionalJavaRoots'. ->
Add additional Java roots to Java source roots and clear diagnostic messages before the next analysis round.
(cherry picked from commit 17ad807)

Original commit: 84d62f37eb
2016-08-29 16:31:16 +03:00
Ilya Chernikov 57224b81e6 Add settings to compiler to specify templates to load, add templates provider using the settings
Original commit: ce6966b486
2016-08-11 09:08:40 +02:00
Alexander Udalov 904ee98969 CLI, Ant: add kotlin-reflect.jar to classpath by default, support "-no-reflect"
Note that now "-no-stdlib" implies "-no-reflect".

 #KT-13237 Fixed

Original commit: 0d26087040
2016-08-09 11:24:24 +03:00