Alexander Udalov
96ded4d5d2
Simplify slices: remove SliceWithOpposite, defaultValue, etc.
2015-07-29 23:44:24 +03:00
Alexander Udalov
a93484b457
Fix callable reference to member of generic class
2015-07-29 23:44:19 +03:00
Alexander Udalov
49a8c7a947
Drop BindingContext.ANNOTATION_DESCRIPTOR_TO_PSI_ELEMENT
...
Use AnnotationDescriptor.getSource() instead
2015-07-29 23:44:19 +03:00
Alexander Udalov
d0562b7b90
Add SourceElement to AnnotationDescriptor
...
Use KotlinSourceElement in the compiler for annotations resolved from PSI,
introduce ReflectAnnotationSource for reflection
2015-07-29 23:44:18 +03:00
Alexander Udalov
ef4a5e78ed
Catch IllegalAccessException in KFunction.call
...
Rename IllegalPropertyAccessException -> IllegalCallableAccessException
2015-07-29 21:36:51 +03:00
Alexander Udalov
262099c899
Fix KFunction.javaMethod for property accessors
2015-07-29 21:36:50 +03:00
Alexander Udalov
9c4ba711b8
Rename and implement KProperty.accessible -> KCallable.isAccessible
2015-07-29 21:36:49 +03:00
Alexander Udalov
8f0885ca03
Rename KClass.properties and extensionProperties: prepend 'member'
...
To better emphasize the fact that all returned properties require an instance
of the class they are declared in. Another issue was that
'Some::class.extensionProperties' was sometimes incorrectly perceived as
"get all extension properties available on the class Some"
2015-07-29 21:36:47 +03:00
Alexander Udalov
7fc499df46
Support KClass.primaryConstructor
2015-07-29 21:36:46 +03:00
Alexander Udalov
e079b8f425
Support KCallable.call
...
#KT-2187 Fixed
2015-07-29 21:36:42 +03:00
Alexander Udalov
936bede8b1
Support mapping between Kotlin functions and JVM methods/constructors
2015-07-29 21:36:41 +03:00
Alexander Udalov
93656c93c1
Support KPackage.members, functions and properties
2015-07-29 21:36:40 +03:00
Alexander Udalov
95be8b11f5
Don't write JetValueParameter to the bytecode
...
The class itself can't be deleted at this point because it's used in the old
bytecode and tools (e.g. proguard) will complain if they can't find it in the
new runtime
2015-07-29 21:36:39 +03:00
Alexander Udalov
6ab1c6bfb3
Add KParameter.type, KType, KType.isMarkedNullable
2015-07-29 21:36:38 +03:00
Alexander Udalov
81ef1c19d8
Support KClass.constructors in reflection
2015-07-29 21:36:37 +03:00
Alexander Udalov
da5cffdb60
Support KClass.functions and declaredFunctions
2015-07-29 21:36:36 +03:00
Alexander Udalov
50dbda1e1a
Introduce KClass.members, make properties/extensionProperties extensions
...
To avoid significant growth of KClass and KPackage interfaces
2015-07-29 21:36:36 +03:00
Alexander Udalov
2492977274
Additional tests on reflection for Java methods
2015-07-29 21:36:35 +03:00
Alexander Udalov
5962b79126
Support introspection of parameter names and indices in reflection
2015-07-29 21:36:34 +03:00
Alexander Udalov
87c70aa2ae
Make Class<*>.kotlinPackage nullable
2015-07-29 21:36:33 +03:00
Pavel V. Talanov
0513994749
Minor: remove "? extends" when injecting iterable into java class
2015-07-29 17:09:41 +03:00
Ilya Ryzhenkov
28df61b6f1
Support ordinary Java invariant Iterable<T> in component container.
2015-07-29 17:09:40 +03:00
Ilya Ryzhenkov
e12e67468f
Distinguish implicit components in dump
2015-07-29 17:09:39 +03:00
Mikhail Glukhikh
41500c916b
java Retention + Repeatable = kotlin.annotation.annotation (but java Repeatable is still intact), a few tests
2015-07-29 16:28:36 +03:00
Mikhail Glukhikh
10ba9c7264
Repeatable test renamed
2015-07-29 16:28:33 +03:00
Mikhail Glukhikh
a072550931
Class is an annotation iff it is annotated by kotlin.annotation.annotation, or is kotlin.annotation.annotation itself.
...
JetClassOrObject.isAnnotation() is no more in use during resolve. Additional test.
2015-07-29 16:28:26 +03:00
Michael Nedzelsky
e9d7bbf493
fix KT-8648 Exception from incremental compilation
...
#KT-8648 Fixed
2015-07-29 15:14:45 +03:00
Mikhail Glukhikh
8a61441be9
AnnotationChecker code cleanup (property access syntax, imports)
2015-07-29 11:35:40 +03:00
Mikhail Glukhikh
39b29068cb
Refactoring: AnnotationTargetChecker --> AnnotationChecker
2015-07-29 11:33:33 +03:00
Alexey Sedunov
5bc2a4b14c
Create From Usage: Do not keep semantic information in quickfix instances directly as it leads to memory leaks
2015-07-28 23:24:22 +03:00
Michael Nedzelsky
2e18b3de9d
prepare to retire Type.Constructor message in descriptors.proto after M13
2015-07-28 19:49:00 +03:00
Michael Nedzelsky
459eed7d28
introduce custom options for messages in proto files
2015-07-28 19:48:44 +03:00
Michael Nedzelsky
ef8381f8af
two optional fields have been added to Type.Constructor message in descriptors.proto in preparation to remove field which requires double interpetation
2015-07-28 19:48:37 +03:00
Mikhail Glukhikh
dbf6da89b7
java.lang.annotation.Repeatable is deprecated + test in a new group: diagnostic tests with Java 8.
2015-07-28 19:03:55 +03:00
Alexey Sedunov
7dc430e50b
Pull Up: Support super-interfaces
2015-07-28 18:48:35 +03:00
Alexey Sedunov
1a09741c0a
Pull Up: Move property initializers
2015-07-28 18:48:33 +03:00
Alexey Sedunov
39ff3c3000
Pull Up: Initial support
...
#KT-7330 Fixed
2015-07-28 18:48:29 +03:00
Alexey Sedunov
3c36795984
Refactoring: Extract JetClassOrObject.getOrCreateBody() function
2015-07-28 18:48:26 +03:00
Mikhail Glukhikh
a86857fbb5
Java Deprecated is mapped in accordance with Java Target / Retention, some diagnostic changed
2015-07-28 17:13:37 +03:00
Mikhail Glukhikh
d6406d8d4a
Annotation repetition checking with a pair of tests, some old tests changes
2015-07-28 17:13:32 +03:00
Mikhail Glukhikh
8beafe90a0
Retention / target for some standard annotations
2015-07-28 17:13:29 +03:00
Dmitry Jemerov
978fb2c1cf
don't go outside of file when trying to find enclosing element for declaration
2015-07-27 11:43:12 +02:00
Natalia Ukhorskaya
47b94326ec
Add NotNull assertions at project.getComponent
...
(cherry picked from commit 9b1167c)
2015-07-27 12:06:01 +03:00
Dmitry Petrov
a64f1a86c0
Fix KT-8608: Compiler crashes with assertion Restore stack is unavailable
...
- fix SAVE_STACK_BEFORE_TRY insertion:
TRYCATCHBLOCK LA, LB, LC
LA
NOP
try_body
LB
...
LC
handler_body
should be transformed into:
LA
{SAVE_STACK_BEFORE_TRY}
LA' // new TCB start label
NOP
try_body
LB
...
LC
handler_body
with all TCBs start labels remapped
- properly wrap exceptions from MandatoryMethodTransformer
#KT-8608 Fixed
2015-07-27 10:40:14 +03:00
Sergey Mashkov
0453368990
Better main function recognition and tests
...
fix vararg main
2015-07-24 17:20:40 +03:00
Sergey Mashkov
8457b53f8b
Better main function recognition and tests
2015-07-24 17:20:40 +03:00
Pavel V. Talanov
273e69c02c
Refactor: Pass buitlins into IntegerValueTypeConstant and IntegerValueTypeConstructor
2015-07-24 13:47:59 +03:00
Pavel V. Talanov
0bed8bb7d4
Minor: Inject builtins into OverloadingConflictResolver
2015-07-24 13:47:57 +03:00
Pavel V. Talanov
4599c962f0
Refactor: make OverloadingConflictResolver and ResolutionResultsHandler components instead of singletons
2015-07-24 13:47:57 +03:00
Pavel V. Talanov
1559c53007
Minor: Inject builtins into DataFlowAnalyzer
2015-07-24 13:47:56 +03:00