Commit Graph

112 Commits

Author SHA1 Message Date
James Strachan 894c84190a migrated most of the test cases over to the new -> syntax for functions; still can't compile or run the tests yet though :(, needs more work... 2011-12-21 16:26:37 +00:00
James Strachan aaf18bdd86 Merge branch 'master' of git+ssh://git.labs.intellij.net/jet 2011-12-21 10:10:12 +00:00
James Strachan 232d161e99 added a little helper method for processing a closeable object which then makes sure the resource is closed (like the try-with-resource extension in Java 7) 2011-12-21 10:09:55 +00:00
Andrey Breslav 6aad3b2662 GreatSyntacticShift: Codegen testdata fixed 2011-12-20 22:56:13 +04:00
James Strachan c9959a10f9 added a couple of helper methods to Map to be able look up in a Map with function to provide a default value 2011-12-20 18:06:58 +00:00
James Strachan 212160fa47 added Array<T>.to(collection) too, along with simpler more DRY one liners for arrayList(), linkedList() and hashSet() helper functions 2011-12-20 17:46:26 +00:00
James Strachan de4b0a4601 added Alex's to(collection: Collection<T>) helper method and simple 1 liners for toList / toLinkedList / toSet etc 2011-12-20 17:27:22 +00:00
James Strachan 68d527c839 removed some warnings and reduntant code 2011-12-20 17:02:30 +00:00
James Strachan 6d19741394 Merge branch 'master' of git+ssh://git.labs.intellij.net/jet 2011-12-20 16:29:48 +00:00
James Strachan fee6bed2d4 removed the create() methods; added linkedList<T>(varargs) helper method and made filter/flatMap/map all allow an optional argument for the kind of collection to filter/flatMap/map into. I've temporarily commented out Alex's implementation of Iterable.filter in Filters.kt as I was getting all kinds of compile error messages. Will discuss this on the list & how better to organise the functions into files 2011-12-20 16:28:18 +00:00
Stepan Koltsov d9ceda7743 reading extension functions from binary classes 2011-12-20 20:13:16 +04:00
Alex Tkachman d37c6976b1 methods for iterators and filters 2011-12-20 15:56:10 +02:00
Alex Tkachman 117f03cbbf System.timeMillis method renamed to measureTimeMillis and measureTimeNano added 2011-12-20 12:54:21 +02:00
Alex Tkachman 63cb29f912 System.timeMillis method 2011-12-20 11:24:08 +02:00
Alex Tkachman 2ae3e9e6c6 Thread.kt 2011-12-19 15:55:00 +02:00
Alex Tkachman 1e471aa9c4 synchronized method 2011-12-19 10:21:17 +02:00
James Strachan 7e93494e2f renamed the sort() methods on Iterable which create a new List and sort that as "toSortedList()" instead which is more accurate. 2011-12-18 08:15:39 +00:00
James Strachan b9c1b2cbfe Merge branch 'master' of git+ssh://git.labs.intellij.net/jet 2011-12-18 07:18:30 +00:00
James Strachan d122929b4b first cut of the collection methods in the standard library in http://confluence.jetbrains.net/display/JET/Standard+Library along with a little testlib to test them. Still a few TODO things and tidy up (and am sure a few more methods could be very handy too) but its getting Kool :) 2011-12-18 07:17:38 +00:00
Alex Tkachman 935a8cd2fa iterables for primitive types 2011-12-17 09:47:14 +02:00
James Strachan 55ba7c0fde added a first spike of the collection-like methods based on this doc http://confluence.jetbrains.net/display/JET/Standard+Library 2011-12-16 11:29:11 +00:00
Alex Tkachman a984b609bc KT-846: better (and correct) names for shared vars 2011-12-16 13:10:20 +04:00
Alex Tkachman fb27805c68 some methods from Arrays added to stdlib 2011-12-16 13:10:18 +04:00
Stepan Koltsov 068780f840 reading class signature (incomplete) 2011-12-16 13:10:15 +04:00
Stepan Koltsov 08647b4ae7 rename @JetSignature to @JetClass, better constants in StdlibNames 2011-12-16 13:10:09 +04:00
Stepan Koltsov eff7903b56 dummy implementation of method type parameters reader and refactoring 2011-12-16 13:10:01 +04:00
Stepan Koltsov e1dcf9db67 rename internal package 2011-12-16 13:09:54 +04:00
Stepan Koltsov e92dbff73a merge Alex' work with mine, move internal classes to internal subpackage 2011-12-16 13:09:53 +04:00
Stepan Koltsov 789e6f3fc6 move jet signature read/write utils into stdlib module 2011-12-16 13:09:50 +04:00
Stepan Koltsov c46fe1381f synchronizing my and Alex' signature writers and readers 2011-12-16 13:09:46 +04:00
Alex Tkachman 307040968c optimizations for instanceof List<*> 2011-12-16 13:09:36 +04:00
Stepan Koltsov 1d4e12abb7 make SignatureUtil format closer to JVM 2011-12-14 01:19:05 +04:00
Stepan Koltsov b86625a437 writing my signatures 2011-12-14 00:58:17 +04:00
Stepan Koltsov 0dcd4d682c more links to specification 2011-12-13 18:54:13 +04:00
Stepan Koltsov 386d8b1f61 rename @JetParameter to @JetValueParameter
requested by Andrey Breslav
2011-12-13 18:36:11 +04:00
Alex Tkachman 3419df7d0c a bit more methods (previously broke compilation) 2011-12-13 16:00:22 +02:00
Alex Tkachman ff055399a7 house keeping 2011-12-13 15:45:18 +02:00
Alex Tkachman 9d0a2c7243 (slightly modified) contribution of Sergey Ignatov of methods for strings and arrays 2011-12-13 13:26:42 +02:00
Alex Tkachman 6889a35fb8 no outer type info 2011-12-12 13:21:47 +02:00
Alex Tkachman 92d8d2de72 functional list benchmark and part of rewrite of type info codegen for performance reasons 2011-12-12 10:40:42 +02:00
Alex Tkachman 81feca7bfd more correct signature 2011-12-09 10:51:05 +02:00
Alex Tkachman 36c0ab6642 work in progress on extra type info in bytecode 2011-12-06 09:25:59 +02:00
Alex Tkachman 1135c8ce7a KT-737 compareTo() intrinsic 2011-12-03 20:51:56 +02:00
Alex Tkachman d8e6c18cfe optimized sure for non-nullable types 2011-12-03 18:56:54 +02:00
Alex Tkachman b9f39b00c0 KotlinCompiler and tests aware on standard library 2011-11-28 14:36:57 +02:00
Alex Tkachman 554aab83be npe() renamed to sure() 2011-11-26 10:01:57 +02:00
Alex Tkachman 2cbd072478 npe() runtime intrinsic method. 2011-11-26 09:30:24 +02:00
Alex Tkachman 8c842a6d5c KT-529 wrong naming of anonimous classes 2011-11-23 11:20:33 +02:00
Alex Tkachman 1c6c5d2bdc test for unreproducable kt533 2011-11-23 10:14:13 +02:00
Alex Tkachman cb37f7b56f ability to test stdlib 2011-11-23 09:56:20 +02:00