Commit Graph

1031 Commits

Author SHA1 Message Date
Pavel V. Talanov 8016766b23 Extension/non-Extension members are deserialized in correct order 2014-11-14 16:18:33 +03:00
Pavel V. Talanov 8e1111d690 Deserialized scope descriptor order synced with serialization order
That introduces implicit dependency of deserialization on MemberComparator
2014-11-14 16:18:32 +03:00
Pavel V. Talanov 847ccde099 Refactor DeserializedClassDescriptor: separate nested classes and enum entries logic 2014-11-14 16:18:31 +03:00
Pavel V. Talanov 9ddde7ca38 Do not put enum entry names into unordered set in deserialized classes 2014-11-14 16:18:30 +03:00
Pavel V. Talanov 5b009e216f Minor: comment 2014-11-14 16:18:30 +03:00
Pavel V. Talanov 77dd027d69 Use MemberComparator in DescriptorSerializer 2014-11-14 16:18:29 +03:00
Pavel V. Talanov dc134b3394 MemberComparator: enum entries have top priority and are never reordered
Fix rendering accordingly
2014-11-14 16:18:29 +03:00
Pavel V. Talanov eba5843468 Test order of enum entries in deserialized classes 2014-11-14 16:18:28 +03:00
Pavel V. Talanov b7ca11cee1 Implement EnumEntrySyntheticClassDescriptor#toString() 2014-11-14 16:18:27 +03:00
Pavel V. Talanov 5ffa66ffc3 Do not put nested class names in unordered set for deserialized classes 2014-11-14 16:18:26 +03:00
Pavel V. Talanov 52f7999bee Stable order of member descriptors in DeserializedMemberScope 2014-11-14 16:18:25 +03:00
Pavel V. Talanov 5be30ab81d Add validation that deserialized members are sorted accordingly 2014-11-14 16:18:25 +03:00
Pavel V. Talanov e8b384eb63 Extract IntersectionScope in TypeUtils 2014-11-14 16:18:24 +03:00
Pavel V. Talanov 5f47a5aa49 Move MemberComparator to 'descriptors' module 2014-11-14 16:18:23 +03:00
Denis Zharkov 8d47bdfebb Made <T> in arrayOfNulls() reified #KT-5651 Fixed 2014-11-13 20:56:10 +03:00
Denis Zharkov 0087d861e1 Introduced new reified marker needClassReification
It's not parametrised by index
2014-11-13 20:56:08 +03:00
Denis Zharkov fc1d8dd9ce javaClass<T> is supported for reified T 2014-11-13 20:56:06 +03:00
Denis Zharkov f3c49c605f Typecheck instructions are supported for reified T 2014-11-13 20:56:06 +03:00
Denis Zharkov 4a66ab3627 Support generic array creation for reified inlined 2014-11-13 20:56:06 +03:00
Denis Zharkov 8e3f87abaf Minor, extracted TypeUtils.isTypeParameter 2014-11-13 20:56:05 +03:00
Valentin Kipyatkov b13c0f2248 Renamed methods 2014-11-12 21:57:50 +03:00
Valentin Kipyatkov 5f5d2de5e0 Moved KindFilter and DescriptorKindExclude out of JetScope, moved constants as well and renamed them 2014-11-12 21:57:49 +03:00
Valentin Kipyatkov 8e992abe58 Minor 2014-11-12 21:25:02 +03:00
Valentin Kipyatkov 25d8db37db Completion optimizations: do not search classes in java package when no SAM-constructors needed or when only singleton classifiers needed 2014-11-12 21:25:02 +03:00
Valentin Kipyatkov 95b3885aa5 Refactored filtering by descriptor kind so that no knowledge about SAM-constructors required in core 2014-11-12 21:25:02 +03:00
Valentin Kipyatkov 5696fef30f Replace HashSet's with LinkedHashSet's for consistent behavior 2014-11-12 21:25:01 +03:00
Valentin Kipyatkov 048d34b964 Minor changes after code review 2014-11-12 21:25:01 +03:00
Valentin Kipyatkov 4ca6c611f8 JetScope.Empty must be public 2014-11-12 21:25:00 +03:00
Valentin Kipyatkov fe5dbbf9b3 More efficient code completion + fixed a few bugs 2014-11-12 21:25:00 +03:00
Valentin Kipyatkov 6f2da4930a Descriptor kind filter replaced with bit mask 2014-11-12 21:24:59 +03:00
Valentin Kipyatkov 43df891515 More precise descriptor kind filtering (preparing to optimize smart completion) 2014-11-12 21:24:59 +03:00
Valentin Kipyatkov a8bd7caed1 Added filtering in subpackages scope 2014-11-12 21:24:59 +03:00
Valentin Kipyatkov 8d02c58e0a Added name filter to PackageFragmentProvider.getSubPackagesOf but do not know how to use it actually 2014-11-12 21:24:59 +03:00
Valentin Kipyatkov d744575000 DeserializedPackageMemberScope uses kind and name filters 2014-11-12 21:24:58 +03:00
Valentin Kipyatkov ad9bb5c2a5 Removed stuff not used anymore 2014-11-12 21:24:58 +03:00
Valentin Kipyatkov d2d7529d9f Split file with 3 classes into 3 files 2014-11-12 21:24:57 +03:00
Valentin Kipyatkov e51993d339 LazyPackageFragmentScopeForJavaPackage uses name filter in getDescriptors() for methods and properties as well 2014-11-12 21:24:57 +03:00
Valentin Kipyatkov c7527e4a4d Name filters filter by Name instead of String 2014-11-12 21:24:57 +03:00
Valentin Kipyatkov 8b2f6007c2 Minor 2014-11-12 21:24:57 +03:00
Valentin Kipyatkov b08e444aa0 LazyPackageFragmentScopeForJavaPackage uses name filter in getDescriptors() for classes 2014-11-12 21:24:57 +03:00
Valentin Kipyatkov 5059ae5182 Removed kotlin.Boolean qualification 2014-11-12 21:24:56 +03:00
Valentin Kipyatkov 2f9b8a21ce LazyPackageFragmentScopeForJavaPackage uses filters in getDescriptors() and does not cache it 2014-11-12 21:24:56 +03:00
Valentin Kipyatkov f8b278464e Minor code editings 2014-11-12 21:24:56 +03:00
Valentin Kipyatkov 6d90a7a8d9 Minor code simplifications 2014-11-12 21:24:55 +03:00
Valentin Kipyatkov 164a8798f8 Chained scope to not cache result of getDescriptors() but uses filters 2014-11-12 21:24:55 +03:00
Valentin Kipyatkov 1983a9f3da Replaced usages of JetScope.getAllDescriptors() with JetScope.getDescriptors() (where makes sense) 2014-11-12 21:24:55 +03:00
Valentin Kipyatkov 760b9c4389 Added JetScope.getDescriptors(nameFilter, kindFilter) but the filters are never used yet 2014-11-12 21:24:55 +03:00
Alexander Udalov 83a2111057 Configure modules 'reflection' and 'reflection.jvm'
Add source roots for IDE features to work in sources, but exclude from Make:
these modules are compiled by the new compiler from build.xml and some weird
errors may arise if we compile it with the old compiler (and also output of
that compilation won't be used anyway)
2014-11-11 18:35:41 +03:00
Alexander Udalov 29480f30ef Minor, fix compilation in module reflection.jvm 2014-11-11 18:35:41 +03:00
Alexander Udalov 57d37a3860 Extract reflection implementation to module runtime.jvm 2014-11-11 18:35:40 +03:00