Alexander Udalov
ad735cd788
Split ProtoBuf.Callable to three messages: constructor, function, property
...
Serialize both at the moment, will drop the old one after bootstrap
2015-10-03 00:59:30 +03:00
Alexander Udalov
041af28166
Deprecate and don't write KotlinClass$Kind, to be removed later
2015-10-03 00:59:30 +03:00
Alexander Udalov
056bb3f833
Deprecate and don't write KotlinSyntheticClass$Kind, to be removed later
2015-10-03 00:59:28 +03:00
Alexander Udalov
5bb47c8365
Write KotlinInterfaceDefaultImpls annotation to DefaultImpls classes
...
Instead of KotlinSyntheticClass with kind = TRAIT_IMPL
2015-10-03 00:58:52 +03:00
Alexander Udalov
e4090d3f30
Cleanup descriptors.proto, regenerate
...
- move enums and messages nested in Callable to top level, since they're likely
to be reused in other messages soon
- delete obsolete comments: some did not any value, some became obsolete with
custom options ("id in StringTable" -> name_id_in_table)
2015-10-02 20:30:55 +03:00
Dmitry Petrov
b09e727462
Update ideaVersion to 142.5239.7.
2015-10-02 19:07:30 +03:00
Nikolay Krasko
e4ac217e46
Update idea-continuous branches
...
- abandon 142 branch
- introduce 143 and 144 branches
2015-10-02 18:23:42 +03:00
Nikolay Krasko
6b6a6d98b7
Add additional line which shouldn't be modified after commenting in other branches to make git auto-merge possible
2015-10-02 18:23:41 +03:00
Dmitry Petrov
1f69ae254d
KT-9377 Support is-checks for read-only collections
...
Additional tests.
2015-10-02 15:17:00 +03:00
Dmitry Petrov
06d9ff6a71
KT-9377 Support is-checks for read-only collections
...
Generate better code for 'as?' with mutable collection types:
use CHECKCAST, do not introduce special intrinsics for safe-as.
2015-10-02 15:17:00 +03:00
Dmitry Petrov
e033d093d4
KT-9377 Support is-checks for read-only collections
...
Reorganize marker interfaces and is/as/as? intrinsics.
2015-10-02 15:17:00 +03:00
Dmitry Petrov
6cb0e5151c
KT-9377 Support is-checks for read-only collections
...
Intrinsics for is/as/as? with mutable Kotlin collections and related types.
2015-10-02 15:17:00 +03:00
Dmitry Petrov
35881198c3
KT-9377 Support is-checks for read-only collections
...
Marker interfaces for mutable Kotlin collections and related classes.
2015-10-02 15:17:00 +03:00
Michael Bogdanov
e91c556d06
Fix for wrong local variable table at inlining lambda with finallies
2015-10-02 13:41:41 +03:00
Mikhail Glukhikh
8ab746d6a3
J2K: visibility modifiers are no more applicable to local classes
2015-10-02 12:52:57 +03:00
Dmitry Jemerov
4ee1b4da84
fix compilation
2015-10-01 20:04:07 +02:00
Dmitry Jemerov
7bc3161e2f
"Rename" quickfix for underscore identifiers
2015-10-01 19:19:23 +02:00
Dmitry Jemerov
983de529ed
add missing read actions to overriders search
...
#KT-9147 Fixed
2015-10-01 19:17:24 +02:00
Dmitry Jemerov
4070ba13cd
when getting a descriptor for a PsiMethod, also check that it has a valid name (KT-9174)
...
#KT-9174 Fixed
2015-10-01 19:17:24 +02:00
Dmitry Jemerov
e70f88c67f
don't create editor in air if we can't find an editor for the element (EA-72968 - TDDE: TraceableDisposable.throwDisposalError)
2015-10-01 19:17:23 +02:00
Dmitry Jemerov
4f56821101
Java sometimes asks us to find usages of a method with no containing class; don't crash on this (EA-73362 - assert: JavaMemberImpl.getContainingClass)
2015-10-01 19:17:23 +02:00
Dmitry Jemerov
49eace61c9
don't report exception if trying to update jar to the same file (this can happen if the version of the plugin is different from the version of the runtime it bundles; in that case, we've already messed up and there is no value in spamming EA with exceptions) (EA-73451 - IAE: KotlinRuntimeLibraryUtil.replaceFile)
2015-10-01 19:17:22 +02:00
Dmitry Jemerov
5c93e25e67
remove dead code
2015-10-01 19:17:21 +02:00
Dmitry Jemerov
9c6f206606
don't try to get the parent of an empty FQ name (EA-73459 - ISE: FqName.parent)
...
#KT-9162 Fixed
2015-10-01 19:17:21 +02:00
Sergey Mashkov
c9843f6387
Downgrade maven-bundle-plugin to build against Java 6
2015-10-01 18:22:28 +03:00
Pavel V. Talanov
caefb2cf50
Adjust test data for converter test
...
Due to type inference change
2015-10-01 17:53:20 +03:00
Pavel V. Talanov
c19b8353d0
Minor, tests: remove some static accesses to builtIns
2015-10-01 17:53:20 +03:00
Pavel V. Talanov
a3fbf2fabc
Test that primitives, arrays, enums are implicitly serializable on jvm and not js
...
Specifically test calling java function that accepts java.io.Serializable
2015-10-01 17:53:19 +03:00
Pavel V. Talanov
7b49baf8c3
Test data adjustment: JetDiagnosticsTest
2015-10-01 17:53:19 +03:00
Pavel V. Talanov
bc8449a70c
Test data adjustment: Resolved calls and constraint system test
2015-10-01 17:53:18 +03:00
Pavel V. Talanov
41c0895abb
JetExtractionTest: adjust test data
...
after making some of builtin types serializable
2015-10-01 17:53:17 +03:00
Pavel V. Talanov
e263c85142
JetTypeChecker: adjust test data
...
after making some of builtin types serializable
2015-10-01 17:53:17 +03:00
Pavel V. Talanov
1f36b7fbea
Extract FunctionPlaceholders from ErrorUtils to a separate component since they are not really an error
2015-10-01 17:53:16 +03:00
Pavel V. Talanov
d5624708fb
Add "java.io.Serializable" as supertype to java builtIns mapped to classes that are serializable on jvm
...
Implementation is hacky, relies on adding fictional supertype to corresponding classes
2015-10-01 17:53:16 +03:00
Pavel V. Talanov
427c853e27
ErrorUtils return DefaultBuiltIns
...
This should be changed in the future by making ErrorUtils not-static
2015-10-01 17:53:15 +03:00
Pavel V. Talanov
76029ee9b2
Introduce JvmBuiltIns and DefaultBuiltIns, different instances of KotlinBuiltIns
...
Make KotlinBuiltIns an abstract class
JsPlatform has DefaultBuiltIns
2015-10-01 17:53:14 +03:00
Pavel V. Talanov
4b9e167fd2
Minor: move builtIns initialization into constructor
2015-10-01 17:53:14 +03:00
Pavel V. Talanov
0ae842a05d
'descriptors' module exports 'deserialization', not the other way around
...
Also remove some of redundantly specified dependencies
2015-10-01 17:53:13 +03:00
Pavel V. Talanov
22e3e192ee
ModuleDescriptorImpl: remove KBI as default parameter
2015-10-01 17:53:12 +03:00
Pavel V. Talanov
7d1b6f4bbb
GenerateOperationsMap uses builtIns from default platform
2015-10-01 17:53:12 +03:00
Pavel V. Talanov
767950fea3
Tests: Replace some usages of KotlinBuiltIns.getInstance()
...
In cases where platform is either unimportant or predefined in test code
2015-10-01 17:53:11 +03:00
Pavel V. Talanov
af3bb80a54
JetChangeSignatureTest: Drop usages of KotlinBuiltIns.getInstance()
2015-10-01 17:53:11 +03:00
Pavel V. Talanov
b79881848f
jvm-backend, cli: Replace some usages of KotlinBuiltIns.getInstance() by JvmPlatform.builtIns
2015-10-01 17:53:10 +03:00
Pavel V. Talanov
5dd4843b5a
reflection.jvm: Drop usages of KotlinBuiltIns.getInstance()
2015-10-01 17:53:09 +03:00
Pavel V. Talanov
537134613a
js.translator: Drop usages of KotlinBuiltIns.getInstance()
2015-10-01 17:53:09 +03:00
Pavel V. Talanov
643cb0a5d4
js.frontend: Drop usages of KotlinBuiltIns.getInstance()
2015-10-01 17:53:08 +03:00
Pavel V. Talanov
0a2bd257a5
frontend.java: Drop usages of KotlinBuiltIns.getInstance()
2015-10-01 17:53:08 +03:00
Pavel V. Talanov
64d8baee1d
DeserializerForDecompilerBase depends on TargetPlatform
2015-10-01 17:53:07 +03:00
Pavel V. Talanov
bb3028b6c9
JetSourceNavigationHelper: drop usage of KotlinBuiltIns.getInstance()
2015-10-01 17:53:07 +03:00
Pavel V. Talanov
f28a8a60c1
AllClassesCompletion: drop usage of KotlinBuiltIns.getInstance()
2015-10-01 17:53:06 +03:00