Commit Graph

13606 Commits

Author SHA1 Message Date
Evgeny Gerashchenko 4239f5bb18 Got rid of "namespace" word in backend. 2014-01-14 18:06:47 +04:00
Evgeny Gerashchenko 1f74f02344 NamespaceFactoryImpl is abolished, since it is almost trivial. 2014-01-14 18:06:47 +04:00
Evgeny Gerashchenko 5319c6e24c LazyResolveNamespaceComparingTest → LazyResolveRecursiveComparingTest 2014-01-14 18:06:47 +04:00
Evgeny Gerashchenko db13cc6ec2 OwnerKind.NAMESPACE → OwnerKind.PACKAGE 2014-01-14 18:06:47 +04:00
Evgeny Gerashchenko 7e7908b831 Got rid of "namespace" term in descriptors module. 2014-01-14 18:05:58 +04:00
Evgeny Gerashchenko 997d3597a9 NamespaceType → PackageType. 2014-01-14 18:05:58 +04:00
Evgeny Gerashchenko 1f615d08c7 NamespaceLikeBuilder → PackageLikeBuilder. 2014-01-14 18:05:57 +04:00
Evgeny Gerashchenko 2189fce64b Renamed class. 2014-01-14 18:05:57 +04:00
Alexander Udalov 7041a10ecf Fix VerifyError on primitive override properties
Don't just blindly map property type in PropertyCodegen when generating getter:
we already have its full signature, so we can just as well take the type from
it. The former also isn't correct for properties which are overrides with a
primitive type. Simple mapType is safe for setter though, because the type of a
method parameter cannot change with override on JVM

The change in StackValue relates to call sites of properties which return Unit:
in that case StackValue's this.type is V, whereas the return type of its getter
is Ljet/Unit; -- so coerceTo was coercing from the wrong type in case of getter
calls

 #KT-4373 Fixed
 #KT-4383 Fixed
2014-01-14 17:52:27 +04:00
Alexander Udalov b92e121458 Minor inlines and renames in PropertyCodegen 2014-01-14 17:43:32 +04:00
Evgeny Gerashchenko 64b982d821 Verifier URL is always provided from teamcity. 2014-01-14 16:27:51 +03:00
Andrey Breslav b120a5150c Foo.class never yields null in Java annotation arguments 2014-01-14 16:37:51 +04:00
Andrey Breslav 84709ed363 Annotation methods never return null 2014-01-14 16:37:51 +04:00
Andrey Breslav bf20c3a734 Annotation constructor parameters are never nullable 2014-01-14 16:37:51 +04:00
Andrey Breslav 65d90e18a2 Use DescriptorRenderer to render annotations everywhere 2014-01-14 16:37:50 +04:00
Valentin Kipyatkov 9fa29535b4 Fixed tests 2014-01-14 16:14:56 +04:00
Valentin Kipyatkov 7aed55fa1d Reference shortening: performance optimization 2014-01-13 19:50:35 +04:00
Nikolay Krasko ce55f10df1 Fix @Nullable annotation for JetClassObject.getObjectDeclaration() 2014-01-13 17:46:46 +04:00
Nikolay Krasko c0187ffcd1 Always create descriptors for class object psi element in lazy resolve
KT-4397 Exception: @NotNull method org/jetbrains/jet/lang/resolve/lazy/ResolveSession.getClassDescriptor must not return null

 #KT-4397 Fixed
2014-01-13 16:14:59 +04:00
Nikolay Krasko 4928ff575d Refactoring: extract method 2014-01-13 12:15:28 +04:00
Nikolay Krasko 7094351c00 Refactoring: remove state 2014-01-13 12:15:27 +04:00
Nikolay Krasko b54fd9fd4e Minor: fix spelling warnings 2014-01-13 12:15:26 +04:00
Alexander Udalov ba9ea75f9e Change workaround for redeclaration problem
Without this hack, redeclarations are reported when you try to rewrite *Range
classes to Kotlin
2014-01-10 17:26:41 +04:00
Andrey Breslav 01c6997fb7 Enum replaced by a map 2014-01-09 21:48:02 +04:00
Alexander Udalov afc62dabd9 Disable assertion in redeclaration checker
Workaround a problem with Java built-in sources
2014-01-09 21:30:10 +04:00
Pavel V. Talanov 160f897806 Conversion on copy paste: Reformat code after conversion 2014-01-09 21:07:24 +04:00
Pavel V. Talanov 7db53106fd Stdlib: fix signature of Reader.forEachLine() function
#KT-4242 Fixed
2014-01-09 21:07:23 +04:00
Andrey Breslav 66c7e89f57 TODO added 2014-01-09 20:41:44 +04:00
Andrey Breslav 8b37db12b9 Concrete header classes replaced by kinds
AS a consequence, instanceof checks removed, code simplified
2014-01-09 20:41:44 +04:00
Andrey Breslav ce18d5ad8c KotlinClassHeader.read() removed 2014-01-09 20:41:44 +04:00
Andrey Breslav 8f8b85101e All IDE code uses VirtualFileFinder instead of KotlinClassFinder + proper service discovery 2014-01-09 20:41:43 +04:00
Andrey Breslav b3f4527bb8 KotlinJvmBinaryClass now has a getClassHeader() method 2014-01-09 20:41:43 +04:00
Andrey Breslav 7fc9772930 Direct instantiations of VirtualFileKotlinClass are replaced by access to caching service 2014-01-09 20:41:43 +04:00
Andrey Breslav 6c1f579c6d VirtualFileFinder and KotlinClassFinder effectively merged (through inheritance)
This is needed to implement caching of KotlinJvmBinaryClass instance inside CliVirtualFileFinder that relies on reading class headers for filtering
2014-01-09 20:41:43 +04:00
Andrey Breslav 8fcaf511dc Methods renamed to avoid ambiguity 2014-01-09 20:41:43 +04:00
Alexey Sedunov 5fcf9ca448 Fix error message in test data 2014-01-09 19:16:45 +04:00
Alexey Sedunov 446941257b KT-4392 #Fixed 2014-01-09 15:20:17 +04:00
Pavel V. Talanov e693820fb4 Auto-imports for operator calls and infix calls
#KT-1613 Fixed
 #KT-4192 Fixed

Enable auto-import fix for "unresolved reference with wrong receiver" diagnostic
2013-12-31 13:24:38 +04:00
Pavel V. Talanov 63abe860d6 Minor: do not generate meaningless new lines when rendering to html 2013-12-31 13:24:37 +04:00
Natalia Ukhorskaya 9fb3a22a39 Prohibit modifiers on initializer #KT-4364 Fixed 2013-12-31 12:41:54 +04:00
Andrey Breslav 161998d2b8 Recursion detection fixed for memoized functions 2013-12-30 19:43:17 +04:00
Andrey Breslav 968e380321 Proper toString() for wrapped throwables 2013-12-30 19:29:33 +04:00
Jon Renner 6781231411 KT-4347 add Array extension indexOf to stdlib 2013-12-30 14:42:56 +04:00
Alexander Udalov 0a552dbb04 Delete outdated hack 2013-12-30 06:41:13 +04:00
Alexander Udalov 713c6f13ae Fix primitive override problem in Kotlin-Java inheritance
See the comment in JetTypeMapper
2013-12-30 06:41:09 +04:00
Alexander Udalov 2ea62bde23 Add equals/hashCode/toString for JVM signatures 2013-12-30 04:15:30 +04:00
Alexander Udalov 603c207a9c Minor inline in BothSignatureWriter + toString() 2013-12-30 04:15:29 +04:00
Alexander Udalov 6a6d7bd236 Refactor JvmMethodSignature
Rename kotlinParameterTypes -> valueParameters. Inline some other methods
2013-12-30 04:15:28 +04:00
Alexander Udalov d73b2057e3 Refactor CallableMethod, add convenient methods
It no longer exposes its JvmMethodSignature
2013-12-30 04:15:27 +04:00
Alexander Udalov 28d2306aa1 Add a convenient method JvmMethodSignature.getReturnType() 2013-12-30 04:15:26 +04:00