Commit Graph

41 Commits

Author SHA1 Message Date
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
James Strachan 9cd21d3a4d used Tuple0 as a better type parameter for the function on Tuple/StringTemplate 2012-03-14 16:14:14 +00:00
James Strachan 34c4808c76 #KT-1565 add a StringTemplate class which takes a Tuple - also add a Tuple so we can easily generically process all the items in a tuple 2012-03-14 12:51:04 +00:00
Andrey Breslav ca81d97b54 Year fixed in the copyright 2012-03-13 20:47:51 +04:00
Andrey Breslav 0a08ac5fe8 Libraries written in Kotlin are factored out into a separate project 2012-03-06 19:00:29 +04:00