Pavel V. Talanov
bb2f08635c
default -> companion: Minor: fix comment
2015-03-18 14:35:54 +03:00
Michael Nedzelsky
af4afaba4a
DescriptorUtils: add getPackagesFqNames
2015-03-18 09:38:49 +03:00
Michael Nedzelsky
e0c0012a20
add serialization.js module
2015-03-18 09:38:47 +03:00
Michael Nedzelsky
9be62de964
add FlexibleTypeCapabilitiesDeserializer.Dynamic object
2015-03-18 09:38:45 +03:00
Michael Nedzelsky
a7ba93c1d1
add flexibleTypeCapabilitiesDeserializer field to BuiltinsPackageFragment
2015-03-18 09:38:42 +03:00
Michael Nedzelsky
c927b69103
DescriptorSerializer: add skip argument to packageProto method
2015-03-18 09:38:33 +03:00
Michael Nedzelsky
930ecb9cf9
move BuiltInsSerializerExtension from builtins-serializer to serialization module
2015-03-18 09:38:25 +03:00
Alexander Udalov
593613609f
Document JVM-specific reflection API
2015-03-17 23:39:15 +03:00
Alexander Udalov
59d3731b93
Document generated K*Functions
2015-03-17 23:39:14 +03:00
Alexander Udalov
e34b3c5298
Document interfaces in package kotlin.reflect
2015-03-17 23:39:14 +03:00
Alexander Udalov
fcdd5a872c
Rename dispatchReceiver -> instance, T -> E
2015-03-17 23:39:14 +03:00
Alexander Udalov
a4f9fe1eaa
Filter out invisible fakes in KClass.properties
...
A user will rarely need those at the moment, and there's currently no other way
to let him filter out them by himself
2015-03-17 23:39:13 +03:00
Alexander Udalov
d3abd54b06
Add 'val KClass.declaredProperties', make getProperties a property
2015-03-17 23:39:13 +03:00
Alexander Udalov
4a61f2751c
Finish off KObject
...
The ABI version was increased to 22 in 94937a3
2015-03-17 23:39:13 +03:00
Denis Zharkov
e37cf6b6a1
Minor, change method contract to @NotNull
2015-03-17 23:18:35 +03:00
Pavel V. Talanov
a50b218c6a
default -> companion: Replace some missed usages of "isDefault"
2015-03-17 17:10:53 +03:00
Pavel V. Talanov
94937a39be
Increase ABI and stub versions
2015-03-17 15:52:41 +03:00
Pavel V. Talanov
06916d98c6
default -> companion: replace all mentions of default and default object
2015-03-17 15:47:39 +03:00
Pavel V. Talanov
2a6facaef6
default -> companion: default object -> class object in project code, builtins and libs code
2015-03-17 15:46:48 +03:00
Alexander Udalov
094fa2f92b
Report error on using reflection without kotlin-reflect.jar in classpath
...
Should be a warning because strictly speaking, the codegen doesn't need it
during the compilation. It's an error at the moment only to let all clients of
Kotlin reflection know that they must include kotlin-reflect.jar in the
classpath
2015-03-16 20:40:49 +03:00
Alexander Udalov
9d6f4e99a1
Move reflection interfaces to module 'builtins'
...
They are considered to be built-ins everywhere anyway
2015-03-16 20:29:39 +03:00
Evgeny Gerashchenko
3a8ded5b58
Finding class by class id instead of fq name in rename tests.
2015-03-16 14:11:38 +03:00
Pavel V. Talanov
c0a031eafe
Support secondary constructors in decompiled text
...
Build cls stubs for secondary constructors
2015-03-13 20:17:32 +03:00
Pavel V. Talanov
188ada2089
Minor: extract ClassDescriptor.secondaryConstructors extension property
2015-03-13 20:17:01 +03:00
Alexander Udalov
ca005977b0
Restore KObject and deprecate it instead
...
To let old code work with the new runtime
2015-03-13 15:46:15 +03:00
Alexander Udalov
8af6ca5279
Delete kotlin.jvm.internal.KObject
...
It was supposed to be used in reflection but the benefits do not outweigh the
cost of KT-6951
#KT-3223 Fixed
#KT-6951 Fixed
2015-03-12 23:15:38 +03:00
Dmitry Jemerov
32072d0a4f
More standard library documentation.
2015-03-12 16:52:20 +01:00
Stanislav Erokhin
d9882a6d0b
Move inference parameter type in FunctionDescriptorResolver
2015-03-12 17:11:52 +03:00
Stanislav Erokhin
6fb8af1dda
Move util backend function isNamedFun && isNamedFunOrLambda to frontend
2015-03-12 17:11:47 +03:00
Andrey Breslav
7b9d0cfc4f
Minor. Compilation fixed
2015-03-11 19:38:17 +03:00
Andrey Breslav
36bbd2c0e3
ErrorReporter is now Java-independent
2015-03-11 19:38:15 +03:00
Andrey Breslav
266485add3
Serialization of star projections fixed
2015-03-11 19:38:14 +03:00
Andrey Breslav
61989ba245
KT-6815 Representing raw types when used as supertypes for Java classes
...
#KT-6815 Fixed
2015-03-11 18:27:37 +03:00
Andrey Breslav
7c62d8ed83
Minor. Unused declarations removed
2015-03-11 18:27:37 +03:00
Andrey Breslav
e0b7e4efca
KT-6803 Subtyping breaks on star-projections for recursive generics
...
Star-projections have upper bounds of the form "parameter's bound where all parameter of the same class are substituted with their star-projections"
#KT-6803 Fixed
2015-03-11 18:27:36 +03:00
Denis Zharkov
4022982760
Add synthetic argument to default constructors
...
It's need to add synthetic argument (of type that user can't use)
to constructors with default arguments to avoid clashing with
real user's constructor having the same set of parameters
and additional int's arguments.
2015-03-11 17:45:28 +03:00
Denis Zharkov
40d7816575
Regenerate protobuf classes
...
After secondary constructors serialization
2015-03-11 17:45:27 +03:00
Denis Zharkov
111a138a2a
Serialize secondary constructors
2015-03-11 17:45:27 +03:00
Denis Zharkov
28fbdb7c53
Prohibit constructors declarations for object
2015-03-11 17:45:24 +03:00
Denis Zharkov
1555eec954
Secondary constructors delegation calls and body resolve
2015-03-11 17:45:23 +03:00
Dmitry Jemerov
d3b8464722
fix test: regenerate Primitives.kt
2015-03-11 15:18:38 +01:00
Alexander Udalov
b93b9bd565
Support KClass.simpleName and built-in class literals
2015-03-11 16:42:43 +03:00
Alexander Udalov
b3cdd818f0
Support member extension properties, implement KClass.getExtensionProperties()
...
#KT-6570 Fixed
2015-03-11 16:42:38 +03:00
Alexander Udalov
da209e673c
Implement KClass.getProperties()
...
#KT-6570 In Progress
2015-03-11 16:42:37 +03:00
Alexander Udalov
fdfd808d80
Remove KForeignMemberProperty and KClassOrigin, use KMemberPropertyImpl instead
2015-03-11 16:42:36 +03:00
Alexander Udalov
ff0044f66a
Use descriptors for reflection on extension properties
2015-03-11 16:42:34 +03:00
Alexander Udalov
1a618deeab
Use descriptors for reflection on top level properties
...
This also allows to obtain a Field object from the package part (see
mapping.kt)
2015-03-11 16:42:33 +03:00
Alexander Udalov
d1debf586c
Support local classes in reflection
2015-03-11 16:42:32 +03:00
Alexander Udalov
64fdb18ad3
Use descriptors for reflection on class properties
...
- use ConcurrentHashMap as a cache of class loaders to module descriptors
- KClassImpl now has a lazy class descriptor and it manages property creation
by looking (also lazily) for the property descriptor in the corresponding
scope
- since deserialized descriptors have full information about where a JVM symbol
is located and what signature it has, new tests will begin to pass where
Kotlin model and Java reflection model differ, see classObjectVar.kt
2015-03-11 16:42:31 +03:00
Alexander Udalov
ba0ea1515b
Minor, simplify/optimize KClassImpl creation
2015-03-11 16:42:30 +03:00