Commit Graph

11879 Commits

Author SHA1 Message Date
Pavel V. Talanov 255f08c8d7 Do not include DescriptorDeclaration#toString() in debug message
DescriptorDeclaration#toString() can be a costly operation (default implementation completely renders descriptor)
2013-09-10 17:42:54 +04:00
Pavel V. Talanov a1b397ee2d Test for invoking "Override methods" for fake override from library 2013-09-10 13:19:07 +04:00
Pavel V. Talanov e2cbfd8055 Fix navigation to compiled overridden descriptors 2013-09-10 13:18:29 +04:00
Pavel V. Talanov 1874942cd2 Log instead of assertion in OverrideImplementMethodsHandler 2013-09-10 13:18:28 +04:00
Pavel V. Talanov 3daa66424b Extract method for finding declarations for descriptor without trace
Use it where appropriate
2013-09-10 13:17:15 +04:00
Pavel V. Talanov e4b2e32827 Return error class in case we are not able to find class for object property 2013-09-10 13:15:30 +04:00
Pavel V. Talanov 2e823d6b7b Introduce ErrorClassDescriptor
Add utility which allows to create error class descriptors with debug message
2013-09-10 13:14:47 +04:00
Pavel V. Talanov 217312ab78 Continue to look for descriptors if IGNORE_KOTLIN_SOURCES was passed as DescriptorSearchRule
Add comment to DesriptorSearchRule explaining why we should get rid of it asap
Remove useless code from DesriptorSearchRule
2013-09-10 13:14:46 +04:00
Alexander Udalov f700266b11 Don't produce run configurations for files out of source roots
#KT-3973 Fixed
2013-09-06 23:26:27 +04:00
Alexander Udalov f63e3da594 Replace LOG.error with LOG.warn when reading classfile with ASM
We don't care much if some corrupt file appears to be in our classpath
2013-09-06 23:26:27 +04:00
Alexander Udalov c0a4d8d24f Support Class<?> as annotation arguments in java 2013-09-06 23:26:27 +04:00
Alexander Udalov b8f9ef9910 Extract interface out of TypeVariableResolver
Also make getTypeVariable() nullable: when a type is not found, it's better to
use error type instead of throwing an exception
2013-09-06 23:26:26 +04:00
Alexander Udalov ccff9e38fe Rename LoadJava annotations test data 2013-09-06 23:26:26 +04:00
Alexander Udalov 5805598306 Replace hard exceptions with LOG.error 2013-09-06 23:26:26 +04:00
Alexander Udalov 77e0d275db Remove unreachable code in AnnotationDescriptorDeserializer
Kotlin classes should only be discoverable by VirtualFileFinder
2013-09-06 21:28:49 +04:00
Alexander Udalov b69970d621 Rename CompileKotlinAgainstCustomJava test
It's not against Java per se, but rather any binaries
2013-09-06 21:28:49 +04:00
Alexander Udalov 9d2add81f8 Don't break the world if enum in annotation isn't found 2013-09-06 21:28:49 +04:00
Alexander Udalov c8a5c9ef59 Add regression for EA-47864 2013-09-06 21:16:42 +04:00
Alexey Sedunov c6b1dc6f36 Fix search of super-declarations 2013-09-06 19:41:18 +04:00
Alexey Sedunov d80512f68a Fix move when multi-line elements have shared lines 2013-09-06 19:41:17 +04:00
Alexey Sedunov 5cee3ae5b3 Reuse getElementLineCount() 2013-09-06 19:41:16 +04:00
Alexey Sedunov b3b948ac39 Fix movement bug when expression is followed/preceded by comment at the functional literal block boundary 2013-09-06 19:41:15 +04:00
Alexey Sedunov f700870bea KT-3791 (Move statement moves lambda parameters out of lambda itself) Fixed 2013-09-06 19:41:14 +04:00
Zalim Bashorov 63941c4e86 Updated to IDEA 132.106 EAP. 2013-09-06 19:10:12 +04:00
Andrey Breslav fca6182288 Fixed the case of "Any is/as List<*>" for erased cast diagnostic 2013-09-06 13:37:09 +04:00
Andrey Breslav 4cf5b94a4a Test data fixed according to 73ab7a9a341913f4f28634aee7f05a8df5fc17fd 2013-09-06 11:20:17 +04:00
Andrey Breslav fa2ea75c09 Do not add explicit visibility modifiers in Override/Implement 2013-09-05 21:59:41 +04:00
Andrey Breslav a3a5f9015a Do not highlight errors in Kotlin files outside source roots 2013-09-05 21:59:41 +04:00
Pavel V. Talanov 61d5d43e15 Do not generate KotlinClass/Package annotation when not in ClassBuilderMode.FULL
#KT-3967 Fixed
2013-09-05 21:32:48 +04:00
Andrey Breslav 6d9e50f1b2 No private constructor in utility classes 2013-09-05 15:03:37 +04:00
Andrey Breslav e3175c66e8 Fixing failed tests: do not report anything on casts that can never succeed 2013-09-05 15:03:37 +04:00
Andrey Breslav e3079ac667 Erased casts supported 2013-09-05 14:17:33 +04:00
Andrey Breslav 173303104e Type Unifier 2013-09-05 14:17:32 +04:00
Andrey Breslav b550687cbc Cast impossibility checking logic moved to a separate class 2013-09-05 14:17:32 +04:00
Andrey Breslav a28d211442 'Cast can never succeed' diagnostics improved 2013-09-05 14:17:32 +04:00
Andrey Breslav 9f4beece64 PlatformToKotlinClassMap injected into expression analyzers 2013-09-05 14:17:32 +04:00
Andrey Breslav 685bea6446 Extract method 2013-09-05 14:14:01 +04:00
Alexander Udalov fb5ab4c7c5 Move serialization.java module to core/
Remove unused dependency from frontend.java
2013-09-04 21:55:11 +04:00
Alexander Udalov 2b9225fdd4 Extract descriptor.loader.java module from frontend.java
Will be used in runtime to load reflected classes
2013-09-04 21:55:11 +04:00
Alexander Udalov 4fa35047b0 Move methods to DescriptorResolverUtils 2013-09-04 21:55:11 +04:00
Alexander Udalov abad793a35 Move DescriptorResolverUtils and TypeUsage to resolver/ 2013-09-04 21:55:11 +04:00
Alexander Udalov 202524ab03 Get rid of recordSourceForSynthesized
Sam descriptors now implement a common interface
SynthesizedCallableMemberDescriptor, introduced in frontend.
BindingContext.SOURCE_DESCRIPTOR_FOR_SYNTHESIZED is no longer needed
2013-09-04 21:55:11 +04:00
Alexander Udalov 56ca247509 Improve JavaElement collection util
Get rid of giant code duplication
2013-09-04 21:55:11 +04:00
Alexander Udalov eef86b4191 Get rid of getPsi() methods in JavaElement/JavaType hierarchy 2013-09-04 21:55:10 +04:00
Alexander Udalov 7e704832ed Add inner classes to duplicateLibraries test 2013-09-04 21:55:10 +04:00
Alexander Udalov 31a13dc688 JavaPackage.getClasses() shouldn't be used directly 2013-09-04 21:55:10 +04:00
Alexander Udalov e62a2bbf2f Support any constant expressions as annotation arguments 2013-09-04 21:55:10 +04:00
Alexander Udalov a17328f9d3 Minor, move ABI version error reporting
AbiVersionUtil will be used in descriptors.loader.java, so it cannot depend on
BindingTrace
2013-09-04 21:55:10 +04:00
Alexander Udalov a2e4029bb5 Use ServiceLoader to load different implementations 2013-09-04 21:55:10 +04:00
Alexander Udalov 026d76ea42 Include META-INF/services in kotlin-compiler.jar
Otherwise services loaded with ServiceLoader wouldn't work in the standalone
compiler
2013-09-04 21:55:10 +04:00