Alexander Udalov
93696ff9bd
Make Array.indices extension property, move to stdlib
...
This is not something that needs to be intrinsified. Note that compiler
optimizations are still possible and the fact whether 'indices' is a member or
an extension is irrelevant to the optimizer
2014-11-17 15:20:44 +03:00
Alexander Udalov
128c938965
Make Array.size() a function instead of a property
...
Also add a deprecated extension property to help migration. This is done to
unify getting size of arrays and collections
2014-11-17 15:02:38 +03:00
Pavel V. Talanov
40addaed13
Fix wrong deserialization order
...
For case when property and function have the same name or
extension and non-extension member have the same name
2014-11-14 17:09:14 +03:00
Pavel V. Talanov
d2cfcfa659
Fix test data after changes to renderer and descriptors
2014-11-14 17:09:05 +03:00
Pavel V. Talanov
32c66f9232
Regenerate OperationsMapGenerated
2014-11-14 16:18:34 +03:00
Pavel V. Talanov
8016766b23
Extension/non-Extension members are deserialized in correct order
2014-11-14 16:18:33 +03:00
Pavel V. Talanov
028e9105af
Add test for enum class with inner classes
2014-11-14 16:18:32 +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
01cf60b834
Separate tests for ordering of deserialized members
2014-11-14 16:18:27 +03:00
Pavel V. Talanov
9a04ff0b9e
Test order of nested/inner classes for deserialized classes
2014-11-14 16:18:26 +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
2533887253
Refactor: Make ValidationVisitor stateful so it's possible to inherit from it
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
eec4b7094c
Added diagnostic test for Array<T> instances usage
...
when T is not reified
2014-11-13 20:56:10 +03:00
Denis Zharkov
73ca75cc0b
Fixed wrong constructor arguments order
2014-11-13 20:56:10 +03:00
Denis Zharkov
a8ca39754c
Supported creating varargs of reified type parameter
2014-11-13 20:56:10 +03:00
Denis Zharkov
28dc84344c
Prohibit ''Nothing'' substitution of reified TP
2014-11-13 20:56:09 +03:00
Denis Zharkov
b3691b7358
Frontend changes for reified type parameters
...
Allowing reified only for inline functions and Intrinsics
2014-11-13 20:56:09 +03:00
Denis Zharkov
79c6f2b91b
Introduced parametrised markers' set
2014-11-13 20:56:09 +03:00
Denis Zharkov
46f22b5422
Test fixed
2014-11-13 20:56:08 +03:00
Denis Zharkov
f00689d7c7
Made closure const instance public
...
because it's usage may be inlined into different package
2014-11-13 20:56:08 +03:00
Denis Zharkov
21699e1753
Supported reification for anonymous objects and lambdas
2014-11-13 20:56:08 +03:00
Denis Zharkov
a689f6d243
Tracking if there is something to reify in members
2014-11-13 20:56:08 +03:00
Denis Zharkov
d8e740d7a3
reifyInstructions returns Boolean whether there is something else to reify
2014-11-13 20:56:08 +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
c19c7d0ec7
Store parameters' identifiers in ReifiedTypeParameterMappings
2014-11-13 20:56:07 +03:00
Denis Zharkov
c18c67c993
Class signature reification
2014-11-13 20:56:07 +03:00
Denis Zharkov
6d6d6fadc1
Refactoring, unified closures generation
2014-11-13 20:56:07 +03:00
Denis Zharkov
45ca14345f
Minor, replaced pattern of ArrayUtil.toStringArray
2014-11-13 20:56:07 +03:00
Denis Zharkov
74ca304931
Extracted buildClassReaderByInternalName into InlineCodegenUtil
2014-11-13 20:56:07 +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
416ac7917b
Removed old unused code emitting calls to non-existent methods
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
060c30746f
Minor, extracted "kotlin/jvm/internal/Intrinsics" into IntrinsicMethods.INTRINSICS_CLASS_NAME
2014-11-13 20:56:06 +03:00
Denis Zharkov
8e3f87abaf
Minor, extracted TypeUtils.isTypeParameter
2014-11-13 20:56:05 +03:00
Alexey Sedunov
b09684024b
Generate light classes for Kotlin inner classes
...
#KT-6237 Fixed
2014-11-13 17:27:33 +03:00
Alexey Sedunov
c487cc7838
Create From Usage: Do not generate unnecessary/skip necessary empty lines
2014-11-13 17:27:24 +03:00
Natalia Ukhorskaya
dab9411c5d
Mark line numbers for bridges in closures
2014-11-13 09:47:10 +03:00
Natalia Ukhorskaya
0a97481184
Mark lineNumbers for synthetic accessors
2014-11-13 09:47:10 +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
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
2512962134
Faster completion of non-imported extensions
2014-11-12 21:25:02 +03:00
Valentin Kipyatkov
ff4d91d47b
Replaced usages of getAllDescriptors() from Kotlin code with getDescriptors()
2014-11-12 21:25:01 +03:00
Valentin Kipyatkov
16c7201b34
Memory optimizations
2014-11-12 21:25:01 +03:00
Valentin Kipyatkov
5696fef30f
Replace HashSet's with LinkedHashSet's for consistent behavior
2014-11-12 21:25:01 +03:00