Commit Graph

54 Commits

Author SHA1 Message Date
Andrey Breslav f925bfccd0 Changing default nullability for type arguments to NotNull 2012-12-14 15:28:21 +04:00
Alexander Udalov 9eecf22e15 Booleans are no longer Comparable 2012-11-28 17:41:36 +04:00
Evgeny Gerashchenko 1a216c22f2 Minor. Renamed getC -> getChar 2012-11-20 17:20:00 +04:00
Evgeny Gerashchenko d37bdbc07d Saving and loading projection kind of array element type in bytecode. 2012-11-20 17:20:00 +04:00
Evgeny Gerashchenko 3fce07b83a Arranged generator classes into packages to make it possible to compile GenerateInjectors separately. 2012-11-12 20:40:23 +04:00
Evgeny Gerashchenko 666aecf716 Extracted generator of ranges into GenerateRanges class. 2012-11-12 19:54:23 +04:00
Natalia.Ukhorskaya 78d22e9f81 KT-2823 TypeCastException has no message
#KT-2823 Fixed
2012-10-11 15:41:49 +04:00
Alexander Udalov c9984c3d06 Generate not-null assertions on method parameters
Intrinsics.checkParameterIsNotNull() gets its caller's class and method names
from the stack trace to render them in an exception message.

Fix codegen tests because now it's now allowed to pass null to non-null
argument in tests
2012-10-08 19:13:20 +04:00
Alexander Udalov fcbc95bbb4 Generate not-null assertions after getting a field 2012-10-08 14:11:57 +04:00
Alexander Udalov 95ec2448eb Generate not-null assertions after method calls
If a method comes from Java and is annotated as returning NotNull, after
calling it we should check if it actually returned something other than null.
Introduce checkReturnedValueIsNotNull() in jet/runtime/Intrinsics which does
exactly that.

CallableMethod's invoke() and invokeDefault() are now private, use asserted
versions instead
2012-10-08 14:11:56 +04:00
Nikolay Krasko 896e78eb04 Allow place KotlinSignature annotation to methods 2012-10-05 15:51:14 +04:00
Evgeny Gerashchenko 51ae2ebb64 Typo. 2012-10-03 22:14:15 +04:00
Evgeny Gerashchenko 069ef8ef91 KT-2712 Debugger should show value of receiver of extension functions
#KT-2712 fixed
2012-10-01 21:23:09 +04:00
Alex Tkachman 4600990d52 JetValueParameter.nullable is deprecated as it duplicates info in type field 2012-09-23 13:19:51 +02:00
Alex Tkachman 1ec32810f4 - small optimizations of JavaDescriptorResolver
- kind of method encoded in flags
- nullable return type encoded in flags
2012-09-23 12:08:55 +02:00
Svetlana Isakova 00447b8cd4 added 'forceReal' parameter to 'visitInnerClassType' method 2012-09-19 13:06:25 +04:00
Svetlana Isakova 3fad7a269b refactoring
extracted methods parseTypeConstructor, parseTypeArguments
2012-09-19 13:06:24 +04:00
Andrey Breslav 4ff2b24acb TupleN classes removed from runtime
Class definitions are kept in the fornt-end to facilitate migration. Will be removed in the next milestone

#KT-2358 In progress
2012-09-18 21:16:31 +04:00
Andrey Breslav dee5152f9b Supporting Unit.VALUE, to replace #()
#KT-2358 In Progress
2012-09-18 20:27:09 +04:00
Alexander Udalov cb13995057 Write callable member's kind to JetMethod annotation
Reuse deprecated kind() parameter in JetMethod annotation to store
CallableMemberDescriptor.Kind if it's not DECLARATION.

JavaDescriptorResolver doesn't always resolve members to DECLARATION
anymore, instead it deserializes member's kind from the annotation.

Create DescriptorKindUtils to convert Kind to int value and back.
2012-09-07 19:00:07 +04:00
Svetlana Isakova 701295fc04 removed kotlin Iterable, Iterator
from kotlin runtime
inner classes 'MyIterator' renamed (it appeared in error messages)
2012-08-16 18:39:23 +04:00
Evgeny Gerashchenko 1b27d0db60 Added toString() method to all ranges. 2012-08-09 19:14:14 +04:00
Evgeny Gerashchenko d7b8ea1817 Made IntRange.toString() aware of empty ranges. 2012-08-09 19:14:14 +04:00
Evgeny Gerashchenko 1bc99ef19a KT-2579 Rename Range.minus() to reversed and make it extension
#KT-2579 fixed
2012-08-09 19:14:14 +04:00
Evgeny Gerashchenko 1656f38f6f Minor: better formatting in code generator. 2012-08-09 15:13:42 +04:00
Evgeny Gerashchenko 543ec16f4d Renamed 'empty' field in range classes to 'EMPTY'. 2012-08-09 15:13:42 +04:00
Evgeny Gerashchenko 4a364f4c26 Added "empty" constant to DoubleRange and FloatRange for uniformity. 2012-08-09 15:13:42 +04:00
Evgeny Gerashchenko 39daa11e13 Fixed maven build. Renamed usages of upto to rangeTo. Excluded DownTo.kt from js lib compilation. 2012-08-08 17:25:43 +04:00
Evgeny Gerashchenko b1fa44aa4d Removed upto() and downto() member functions from number types
#KT-2519 fixed
2012-08-08 14:48:04 +04:00
Alex Tkachman 0e4a8660fd KT-2416 fix contains for ranges with primitive parameters 2012-08-03 09:15:53 +03:00
Evgeny Gerashchenko 5cd7df95a1 Added proper equals and hashCode methods to range classes. 2012-07-31 22:15:07 +04:00
Evgeny Gerashchenko 1a1661c15f Minor 2012-07-31 22:15:07 +04:00
James Strachan fc4a7cd4dd added nicer toString() for int ranges 2012-07-25 05:59:01 -04:00
Evgeny Gerashchenko a9564e7580 KT-2414 for (x in 0 downto 0) makes no steps
#KT-2414 fixed
2012-07-21 20:34:25 +04:00
Evgeny Gerashchenko a1ef535ace Reverted "Fixed Ranges.upTo and downTo, so they return non-empty range for case from==to". This patch needs to be reviewed later. 2012-07-15 11:23:04 +04:00
Evgeny Gerashchenko d3ba6a7bb9 Fixed Ranges.upTo and downTo, so they return non-empty range for case from==to. 2012-07-14 12:46:51 +04:00
Evgeny Gerashchenko 07347e20a9 Reformatted Ranges. 2012-07-14 12:41:49 +04:00
Alexander Udalov 2d6b8abbe1 fix java.lang.Number type mapping to jet.Number (KT-2376) 2012-07-11 16:37:48 +04:00
Evgeny Gerashchenko ef19700283 Added attaching external annotations via module script. 2012-07-03 13:35:52 +04:00
Evgeny Gerashchenko e75f9aee53 Added "flags" field to JetConstructor property. 2012-06-16 14:36:37 +04:00
Evgeny Gerashchenko 18db494bc1 Added 'flags' field to JetClass annotation. 2012-06-16 14:36:06 +04:00
Evgeny Gerashchenko 96a35f9793 Changed comment in JetMethod.flags() 2012-06-16 14:36:06 +04:00
Evgeny Gerashchenko 12893cec54 Added JetMethod.flags() to replace kind(), with adding extra functionality (modality and visibility marking). 2012-06-09 16:46:37 +04:00
Stepan Koltsov acac0eddc7 formatting 2012-06-08 21:36:49 +04:00
Evgeny Gerashchenko 43e83956cc Introduced @KotlinSignature annotation to be used on methods. 2012-06-04 15:28:02 +04:00
Stepan Koltsov aa4252462f replace 'for (;;)' with 'while (true)' 2012-05-11 16:26:26 +04:00
Alex Tkachman f076ff027d KT-729 Need to support arrays as varargs 2012-04-28 10:43:49 +03:00
Stepan Koltsov 829f73cc5f some classes from runtime.jar are not meant to be loaded by JDR
* assert runtime implementations from JetStandard* are not loaded
  by JavaDescriptorResolver
* fix wrong @JetMethod in jet.Iterator
* fix jet.Iterator ns was created
* fix incorrect number of functions and tuples in JetStandardClasses
* added TODO about inconsisten Tuple class
2012-04-11 20:00:01 +04:00
Stepan Koltsov a889e29147 else on the next line
as requested by http://confluence.jetbrains.net/display/JET/Code+Conventions+for+Java

(sed is your friend)
2012-04-10 00:03:13 +04:00
James Strachan 5f2fc14b8b added more comments on how to construct a valid StringTemplate 2012-03-14 18:17:53 +00:00