Commit Graph

26364 Commits

Author SHA1 Message Date
Valentin Kipyatkov 58bcb576a1 Completion: grayed parameters and type in completion of imports and callable references (arguable) 2015-10-03 10:40:52 +03:00
Valentin Kipyatkov ee28a170d6 Auto-popup completion after "::" 2015-10-03 10:40:52 +03:00
Valentin Kipyatkov 836d116786 Checked that import popup now works for callable references 2015-10-03 10:40:52 +03:00
Valentin Kipyatkov e562c019f9 No "{...}" in presentation for functions in completion of imports and callable references 2015-10-03 10:40:51 +03:00
Valentin Kipyatkov 08335a2ac9 Callable reference completion for non-imported callables 2015-10-03 10:40:51 +03:00
Valentin Kipyatkov 3a2bc51445 Renamed term "classifier" to "matcher" 2015-10-03 10:40:51 +03:00
Valentin Kipyatkov c0bfca4f89 A::class and A::class.java supported in smart completion too 2015-10-03 10:40:51 +03:00
Valentin Kipyatkov ec5d1d3a52 Support for A::class and A::class.java in basic completion (but not in smart) 2015-10-03 10:40:51 +03:00
Valentin Kipyatkov ebf649a681 Support for callable references in smart completion 2015-10-03 10:40:50 +03:00
Valentin Kipyatkov 3f64b25df3 Renamed tests 2015-10-03 10:40:50 +03:00
Valentin Kipyatkov 5fddefbf4d Corrected and restored test 2015-10-03 10:40:50 +03:00
Valentin Kipyatkov 1e21b0201c Renamed test folder 2015-10-03 10:40:50 +03:00
Valentin Kipyatkov ce05434a0c Fixed extension functions being grayed in import statement completion
#KT-5627 Fixed
2015-10-03 10:40:50 +03:00
Valentin Kipyatkov e41732e572 No callable references to synthetic extensions (and ones for get/set) 2015-10-03 10:40:50 +03:00
Valentin Kipyatkov 2471647952 Minor refactoring 2015-10-03 10:40:49 +03:00
Valentin Kipyatkov eaec9795e5 Workaround for compiler bug 2015-10-03 10:40:49 +03:00
Valentin Kipyatkov 2760b0bdb9 Refactoring to make receiver type safe 2015-10-03 10:40:49 +03:00
Valentin Kipyatkov c12520da7f Move 2015-10-03 10:40:49 +03:00
Valentin Kipyatkov 56bb8adfd0 Refactoring to add CallType.IMPORT_DIRECTIVE and CallType.PACKAGE_DIRECTIVE 2015-10-03 10:40:49 +03:00
Valentin Kipyatkov d38ceb50b6 Initial support for KT-7090 Completion for callable references
#KT-7090 Fixed
2015-10-03 10:40:49 +03:00
Valentin Kipyatkov 7ee65bf41a Minor 2015-10-03 10:38:31 +03:00
Valentin Kipyatkov 72a5a68769 Dropped support for backing fields (with '$') completion 2015-10-03 10:38:31 +03:00
Alexander Udalov 7c0b3e31c7 Fix usages of callable references with empty LHS in project 2015-10-03 04:37:06 +03:00
Alexander Udalov 659826d5c3 Update reservedWords JS tests after changes to callable references 2015-10-03 04:37:05 +03:00
Alexander Udalov 012a2971ff Quick-fix to add type to LHS of incorrect callable references 2015-10-03 04:37:05 +03:00
Alexander Udalov 661f4efc68 Forbid callable references to members and extensions with empty LHS
This syntax is reserved to be likely used in the future as a shorthand for
"this::foo" where the resulting expression doesn't take the receiver as a
parameter but has "this" already bound to it
2015-10-03 04:37:04 +03:00
Alexander Udalov f310d4c10e Don't write Kotlin metadata in light classes mode
This was already happening for classes and packages, now will also for
interface DefaultImpls and any other possible classes
2015-10-03 01:03:35 +03:00
Alexander Udalov cb6d16d224 Advance ABI version after changes to binary format 2015-10-03 00:59:52 +03:00
Alexander Udalov bdd69d9e46 Use internal names in multifile class metadata
To reuse the strings already existing in the constant pool of the class file
2015-10-03 00:59:34 +03:00
Alexander Udalov e1ccb92438 Write built-in extensions to new protobuf messages 2015-10-03 00:59:34 +03:00
Alexander Udalov 8c0a86617a Write JVM signatures to new protobuf messages 2015-10-03 00:59:33 +03:00
Alexander Udalov 06a7ca5571 Minor, use existing utility for getting implClassName 2015-10-03 00:59:33 +03:00
Alexander Udalov 4f21caecc4 Simplify AnnotationAndConstantLoader, use NameResolver from ProtoContainer 2015-10-03 00:59:32 +03:00
Alexander Udalov 3a7a48a079 Minor, add nameResolver to ProtoContainer 2015-10-03 00:59:32 +03:00
Alexander Udalov 14ec34e37c Refactor annotation and constant loader, simplify, drop some useless checks 2015-10-03 00:59:31 +03:00
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