Commit Graph

6393 Commits

Author SHA1 Message Date
Andrey Breslav 9391fa79c3 CLI help text changed 2013-10-08 21:52:08 +04:00
Andrey Breslav 7f46d7555e Do not write "? extends" and "? super" in immediate arguments of supertypes in Java generic signatures 2013-10-08 21:13:30 +04:00
Andrey Breslav 31c14c33e0 WriteSignatureTest is now generated 2013-10-08 21:13:29 +04:00
Andrey Breslav aaac4419d5 Support testing class signatures 2013-10-08 21:13:29 +04:00
Andrey Breslav 5aa8aa4550 Package names unified in test data 2013-10-08 19:21:02 +04:00
Andrey Breslav a985882baf CompilerAdapter for <javac> task + test for compiler attribute
No test for the typedef <withKotlin/> because Ant 1.7 doesn't seem to support typedef inside <javac>
2013-10-08 19:21:02 +04:00
Andrey Breslav bf49bc0220 <kotlinc> ant task now supports <src> element and multiple source directories 2013-10-08 19:21:02 +04:00
Evgeny Gerashchenko 9c38716829 Generating annotations in correct order for methods with synthetic parameters.
#KT-4050 fixed
2013-10-08 16:44:16 +04:00
Evgeny Gerashchenko e401be7ee6 Minor. Clarified terms. 2013-10-08 16:44:16 +04:00
Evgeny Gerashchenko 8e39499a9f Green code. 2013-10-08 16:44:16 +04:00
Pavel V. Talanov 4a217d8cde Fix invalid usage of descriptorToDeclaration in GotoSuperActionHandler 2013-10-07 20:50:36 +04:00
Alexey Sedunov c943b4e9d5 Add proper annotations for Android SDK 2013-10-07 17:45:02 +04:00
Andrey Breslav 00c3156b59 Use Unit instead of Void 2013-10-05 16:59:57 +04:00
Andrey Breslav 2e585f88a3 ReenteringLazyValueComputationException & co moved to frontend 2013-10-05 16:59:57 +04:00
Andrey Breslav 0765e89b19 Weakly retained memoized functions moved out of util.runtime 2013-10-05 16:59:57 +04:00
Andrey Breslav 239ca9728d StorageManager API does not use Computable and Function and more 2013-10-05 16:59:57 +04:00
Andrey Breslav 7d1c46ed2c Getting rid of Computable and Function in lazy values and memoized functions 2013-10-05 16:59:56 +04:00
Evgeny Gerashchenko a1e4ca2871 Not building light class for local class (to fix exception in tests). 2013-10-04 20:40:55 +04:00
Zalim Bashorov 4f957eaf69 Extracted manifest values to manifest.properties file. 2013-10-04 19:21:25 +04:00
Zalim Bashorov dd553ef671 JPS plugin: refactoring:
- extract utility methods from KotlinBuilder;
- use StringUtil#join instead for iteration;
- add private constructor to LibraryUtils.
2013-10-04 19:18:19 +04:00
Alexander Udalov 89dbafb6be Rename KotlinClassFileHeader and related classes 2013-10-04 18:32:42 +04:00
Alexander Udalov 098d183a72 Remove Logger from AnnotationDescriptorDeserializer
Use abstract ErrorReporter instead
2013-10-04 18:32:42 +04:00
Alexander Udalov edda5d8801 Move AssertInvisibleInResolver check to frontend.java
This is a dirty hack, taking advantage of the fact that
JavaResolverCache.getClass() is called exactly once and right after this check
2013-10-04 18:32:41 +04:00
Alexander Udalov dbba6c614b Rename JvmClassName.getFqName() and add a warning
All usages of this method as of right now seem wrong, as they don't work in the
case of classes which contain dollars in their names -- dollars get replaced to
dots
2013-10-04 18:32:41 +04:00
Alexander Udalov e8d4aae48b Minimize usages of JvmClassName.getFqName() 2013-10-04 18:32:41 +04:00
Alexander Udalov fa4f568437 Delete AsmUtil.fqNameByAsmTypeUnsafe, refactor KotlinToJavaTypesMap 2013-10-04 18:32:41 +04:00
Alexander Udalov fc78971aea Delete JvmClassName.getAsmType() 2013-10-04 18:32:40 +04:00
Alexander Udalov 521496b188 Delete JvmPrimitiveType.getAsmType()
Create PrimitiveTypesUtil in frontend.java for this and other utilities
2013-10-04 18:32:40 +04:00
Alexander Udalov 18df0de2d5 Extract JvmClassName.byFqName().getAsmType() logic 2013-10-04 18:32:40 +04:00
Alexander Udalov bee32b8138 Delete useless method from NamespaceCodegen
It was already present in PackageClassUtils
2013-10-04 18:32:40 +04:00
Alexander Udalov 8729c88aa2 Refactor CodegenBinding & PsiCodegenPredictor
Use ASM Type to store names of classes, use strings in PsiCodegenPredictor.
Inline some methods, move closer to their usages
2013-10-04 18:32:40 +04:00
Alexander Udalov 035a7cccda Delete unused slice in CodegenBinding 2013-10-04 18:32:40 +04:00
Alexander Udalov 6015db3487 Delete unneeded method from PsiCodegenPredictor 2013-10-04 18:32:40 +04:00
Alexander Udalov 6edee687a2 Refactor CodegenBinding.getJvmInternalFQNameImpl
Simplify code, make sure empty string is never returned
2013-10-04 18:32:40 +04:00
Alexander Udalov f4abaaee10 Delete JvmClassName.byType
Replace JvmClassName by ASM Type in many places of JVM codegen: it wasn't used
to abstract anything, but there was a lot of useless conversions between the
two
2013-10-04 18:32:39 +04:00
Alexander Udalov 57ed81521d Don't call .getFqName() when writing package src class name
Package$src class names contain dollars, and JvmClassName.getFqName() doesn't
work very well for such names
2013-10-04 18:32:39 +04:00
Alexander Udalov 6898274f47 Delete JvmClassName.getDescriptor()
It shouldn't be available in descriptor.loader.java, since it wouldn't depend
on ASM and its descriptors won't make any sense there. Most of the places where
this method was used were in codegen. The few exceptions are reading
annotations for compiled Kotlin classes by ASM visitors, but that will be
abstracted away soon
2013-10-04 18:32:39 +04:00
Alexander Udalov 45bc7c2926 Delete JvmClassName.byClass, refactor JvmAnnotationNames
Store constant class names as instances of FqName instead of JvmClassName. This
is done to minimize usages of the method 'JvmClassName.getFqName()', since it's
wrong and shouldn't be used
2013-10-04 18:32:39 +04:00
Alexander Udalov 6aab9fe04e Delete JvmClassName.byClassDescriptor
It only worked correctly by coincidence: mapping from the Kotlin world to the
JVM world should always be done through JetTypeMapper
2013-10-04 18:32:39 +04:00
Alexander Udalov ead8833a88 Minor, fix warnings in codegen 2013-10-04 18:32:39 +04:00
Alexander Udalov 54db0e30c0 Delete signature name from JvmClassName 2013-10-04 18:32:39 +04:00
Alexander Udalov 1cb68e9cf4 Move KotlinToJavaTypesMap, AsmTypeConstants to frontend.java
They're used only in compiler
2013-10-04 18:32:38 +04:00
Alexander Udalov 73b867d1e5 Simplify JvmPrimitiveType, PrimitiveType
Delete utility methods from interfaces, move once-used methods to where they're
used
2013-10-04 18:32:38 +04:00
Alexander Udalov 1578d891cb Remove PsiClassFinder
Inline the implementation into JavaClassFinderImpl
2013-10-04 18:32:38 +04:00
Alexander Udalov 7fa39eb41b Delete InjectorForJDR.getPsiClassFinder()
Replace its usages by getJavaClassFinder(). Remove code duplication in
AnalyzerFacadeForJVM/LazyResolveTestUtil
2013-10-04 18:32:38 +04:00
Andrey Breslav 4cd5c66c27 No need to escape exceptions in recursionDetected() 2013-10-03 15:49:20 +04:00
Andrey Breslav db34868b6e Migrate existing code to LockBasedStorageManager.NO_LOCKS 2013-10-03 15:49:20 +04:00
Andrey Breslav aa90302d1b Tests for storage manager 2013-10-03 15:49:20 +04:00
Andrey Breslav 5f4af8fb03 Distinguishing first and subsequent recursive calls to lazy values 2013-10-03 15:49:20 +04:00
Andrey Breslav 0c83832f27 Use ReentrantLock instead of intrinsic locks in LockBasedStorageManager 2013-10-03 15:49:19 +04:00