Commit Graph

19074 Commits

Author SHA1 Message Date
Valentin Kipyatkov 522ceee559 Optimizations 2014-12-03 19:03:02 +03:00
Valentin Kipyatkov 1d288e6dcc Completion: multiple extension methods with different substitutions may be shown 2014-12-03 19:03:02 +03:00
Valentin Kipyatkov 2c08b3e229 Extension methods shown with type arguments substituted in completion list 2014-12-03 19:03:02 +03:00
Valentin Kipyatkov 3df3e57b05 Added tests 2014-12-03 19:02:20 +03:00
Valentin Kipyatkov 05bb32545f Fixed all members are grayed in global context 2014-12-03 19:02:20 +03:00
Valentin Kipyatkov e5e27d028d Fixed smart completion at offset 0 2014-12-03 19:02:20 +03:00
Valentin Kipyatkov cf35fc1fd5 Completion: immediate members get higher priority in the list 2014-12-03 19:02:20 +03:00
Valentin Kipyatkov 72ff719001 Completion: added package name for global functions/properties in the list 2014-12-03 19:01:48 +03:00
Valentin Kipyatkov 7c67566719 Completion: got rid of special LookupElementFactory implementation to highlight immediate members 2014-12-03 19:01:48 +03:00
Valentin Kipyatkov 66289f0b4a Completion: our own lookup elements for java classes 2014-12-03 19:00:58 +03:00
Valentin Kipyatkov 77e1210bff Completion: classes not to be used in Kotlin placed to the last place 2014-12-03 19:00:58 +03:00
Valentin Kipyatkov 6ddedb7825 Better imported/non-imported items sorting in completion 2014-12-03 19:00:58 +03:00
Valentin Kipyatkov 94b7945cd8 Added a test 2014-12-03 19:00:57 +03:00
Valentin Kipyatkov 48edd5f02a Fixed completion list ordering for java classes 2014-12-03 19:00:57 +03:00
Valentin Kipyatkov 9dc6a82fef More clear code + better test 2014-12-03 19:00:57 +03:00
Valentin Kipyatkov 6502c44928 Immediate extension members are correctly detected for platform types 2014-12-03 19:00:57 +03:00
Valentin Kipyatkov acfd308a7e Code completion: graying members after dot completion for nullable value 2014-12-03 19:00:57 +03:00
Valentin Kipyatkov a60f32b919 More correct and simple code 2014-12-03 18:59:45 +03:00
Valentin Kipyatkov 79cfa1f84e Code simplification 2014-12-03 18:59:45 +03:00
Alexander Udalov 07cfc173f9 Add ProtoBufConsistencyTest
This test checks that indices of all extensions on the same message type are
unique across different extension points (JVM, built-ins, ...)
2014-12-03 16:10:20 +03:00
Alexander Udalov 63bfa004fd Introduce binary representation for annotations
Will be used where annotations can't be stored elsewhere: for example,
built-ins, JS, type annotations on JDK<8
2014-12-03 16:10:19 +03:00
Alexander Udalov 9a86318908 Introduce extension for built-ins serialization, drop .kotlin_class_names 2014-12-03 15:58:14 +03:00
Alexander Udalov f19aa2290c Minor, remove unnecessary NOTHING_TO_INLINE suppressions 2014-12-03 15:58:13 +03:00
Alexander Udalov 9bd815126b Rename NameTable -> StringTable in serialization
Since almost the beginning, it was also used to store arbitrary strings, not
just names
2014-12-03 15:58:13 +03:00
Alexander Udalov 66774c0fd1 Remove utility method from AnnotationDescriptor interface 2014-12-03 15:58:12 +03:00
Michael Bogdanov 328dedc415 Fix for KT-6383: Can't access a private static member of class object
#KT-6383 Fixed
2014-12-03 15:49:20 +03:00
Andrey Breslav fda7f63957 isBoolean() moved to KotlinBuiltIns 2014-12-03 15:39:16 +03:00
Andrey Breslav 99ac9e1c2f Singleton made thread-safe in JavaToKotlinClassMap 2014-12-03 15:39:16 +03:00
Andrey Breslav 80a32ee875 ModuleDescriptor knows its built-ins 2014-12-03 15:39:15 +03:00
Andrey Breslav 32d2a9cdb2 KotlinBuiltIns injected into ExpressionTypingUtils 2014-12-03 15:39:14 +03:00
Andrey Breslav ae7f38d891 Some usages of KotlinBuiltIns injected as components 2014-12-03 15:39:13 +03:00
Andrey Breslav 0bc721fd77 Singletons supported in Injector Generator 2014-12-03 15:39:13 +03:00
Andrey Breslav 6efa0032e5 GenerateInjectors cleaned up 2014-12-03 15:39:12 +03:00
Andrey Breslav c21dd366e0 Checks for primitive types and arrays made static in KotlinBuiltIns 2014-12-03 15:39:11 +03:00
Andrey Breslav b275b363c9 is<Annotation>() made static in KotlinBuiltIns 2014-12-03 15:39:11 +03:00
Andrey Breslav db635c0e44 is<TYPE>() made static in KotlinBuiltIns 2014-12-03 15:39:10 +03:00
Andrey Breslav 7a41e37655 isNothing() made static 2014-12-03 15:39:10 +03:00
Andrey Breslav ea4f0ab214 Methods in KotlinBuiltIns made static where already possible 2014-12-03 15:39:09 +03:00
Nikolay Krasko 75c887048e Drop AbstractLazyResolveRecursiveComparingTest test
Test data from compiler/testData/lazyResolve/ was moved to diagnostics tests
2014-12-03 14:08:23 +03:00
Nikolay Krasko dd79fd9a98 Remove tests - same is tested in AbstractLoadJavaTest 2014-12-03 14:08:22 +03:00
Nikolay Krasko f50aab4b85 Drop LazyResolveStdlibLoadingTest
- Descriptors compare is useless
- Absence of errors in stdlib is checked in NoErrorsInStdlibTest
2014-12-03 14:08:21 +03:00
Nikolay Krasko a0a292cbf5 Drop AbstractLazyResolveDescriptorRendererTest with DescriptorRendererTest refactoring 2014-12-03 14:08:21 +03:00
Nikolay Krasko 44aba2d761 Drop lazy tests: test data is used in ResolveTestGenerated.Imports 2014-12-03 14:08:20 +03:00
Nikolay Krasko b99d346e3a Subclass JetLightCodeInsightFixtureTestCase to avoid assert about invalid root 2014-12-03 14:08:19 +03:00
nik ca7ce6228c initial injection support (KT-2428): allow injection inside string literals 2014-12-03 13:52:59 +03:00
Natalia Ukhorskaya 3ab7c6c8e9 Evaluate Expression: fix for anonymous objects - expressions where anonymous type can be replaced with super type can be evaluated 2014-12-03 12:49:40 +03:00
Natalia Ukhorskaya b056fd7e2e Add test for completion with runtime type cast 2014-12-03 12:49:38 +03:00
Natalia Ukhorskaya 0c74016ab7 Remove duplicates in completion with runtime types 2014-12-03 12:49:37 +03:00
Natalia Ukhorskaya e191130446 Move helper method 2014-12-03 12:49:35 +03:00
Natalia Ukhorskaya 732700e959 Completion: insert cast to runtime type for receiver in code fragments 2014-12-03 12:49:33 +03:00