James Strachan
|
2bc5efce12
|
add java.util.Map's size and empty properties
|
2012-01-04 09:36:14 +00:00 |
|
Alex Tkachman
|
b2593b268e
|
KT-715. T.javaClass & TypeInfo.javaClassForType
|
2012-01-04 10:17:40 +02:00 |
|
Stepan Koltsov
|
c85be68047
|
move typeinfo annotations
annotations should not be used by developers, so place them under jet.runtime package
|
2012-01-04 02:39:50 +04:00 |
|
Stepan Koltsov
|
7325285813
|
read properties from binary classes
(intermediate version)
|
2012-01-03 17:16:50 +04:00 |
|
Stepan Koltsov
|
0f1b534d7b
|
rename ModuleBuilder.sourceFiles
Currently invalid bytecode is generated, see
http://youtrack.jetbrains.net/issue/KT-904
for details.
|
2011-12-31 00:53:36 +04:00 |
|
Andrey Breslav
|
4579c9826f
|
Reverting problematic commits:
fa500f453d Alex Tkachman Today 19:47
725bebc23f Alex Tkachman Today 19:36
|
2011-12-27 21:26:20 +04:00 |
|
Stepan Koltsov
|
617b3b5db5
|
ReadClassDataTest: type variable resolver
|
2011-12-27 20:46:43 +04:00 |
|
Alex Tkachman
|
725bebc23f
|
work in progress on compiler unification between cli and plugin
|
2011-12-27 17:36:37 +02:00 |
|
Andrey Breslav
|
0ddd926a4b
|
Merge remote branch 'origin/master'
|
2011-12-27 14:17:31 +04:00 |
|
Nikolay Krasko
|
44e558b681
|
More iterable extensions
|
2011-12-27 12:46:33 +04:00 |
|
Andrey Breslav
|
3b0ca42e0b
|
jet.typeinfo.TypeInfo -> jet.TypeInfo
|
2011-12-26 18:59:48 +04:00 |
|
Andrey Breslav
|
5653dabe95
|
Syntax fixed
|
2011-12-26 18:20:16 +04:00 |
|
Alex Tkachman
|
b64e8407f9
|
removed nested namespace
|
2011-12-25 23:12:41 +02:00 |
|
Alex Tkachman
|
41f9a71777
|
modules property instead of defineModules in Module DSL
|
2011-12-25 21:53:36 +02:00 |
|
Andrey Breslav
|
f52eae71d0
|
GreatSyntacticShift: 'namespace' -> 'package'
|
2011-12-25 15:51:59 +04:00 |
|
James Strachan
|
393ecf2208
|
added a groupBy method (and stumbled on a couple more little compiler bugs which could well be the same as previous issues I've raised this week). Happy holidays everyone :)
|
2011-12-24 07:46:26 +00:00 |
|
James Strachan
|
8396017b5b
|
added example of compiler issue; unable to create 'size' and 'empty' properties on Collection<T> and java.util.Map<T> it seems? wonder if its a qualified name issue - qualified names don't seem to be allowed on extension properties - will raise an issue...
|
2011-12-23 17:20:25 +00:00 |
|
James Strachan
|
aa46952531
|
implemented containerType.count(predicate)
|
2011-12-23 16:48:22 +00:00 |
|
James Strachan
|
3fa49cadc0
|
added filterNot method
|
2011-12-23 16:27:40 +00:00 |
|
James Strachan
|
991a3d9dec
|
added proper map with default size passed in for Collection/Array but also added to Iterable and java.util.Iterable with no size; so the collection/iterable methods are now I think replicated; just need iterator methods now
|
2011-12-23 15:52:37 +00:00 |
|
James Strachan
|
877de17122
|
move coverage of the standard methods across Iterable, Array, java.util.Iterable (not quite complete but close)
|
2011-12-23 15:46:41 +00:00 |
|
James Strachan
|
5242985e2e
|
first cut of a little bit of code generation to make sure we mirror most of the java.util.Iterable<T> methods to Array<T>
|
2011-12-23 15:23:21 +00:00 |
|
Alex Tkachman
|
6d41dee6f7
|
static typ[e info for Any & Any?
|
2011-12-22 14:24:15 +02:00 |
|
James Strachan
|
2274ab48ab
|
added a useLines() methods on Reader to be able to use a line iterator (Iterator<String>) to process the file on a per line bases with the block in full control over how much of the file to process; though hit a couple of type inference issues
|
2011-12-22 09:36:18 +00:00 |
|
James Strachan
|
71b1aee908
|
added a little test case showing how we can iterate through lines in a file; also started adding helper methods to the standard kotlin Iterator; though probably need to rename the to* methods iterators, maybe to collect* as Stepan suggested. Could maybe use some extension function syntax making it easy to add helper methods consistently to Array, Iterator, Iterable, java.util.Iterator, java.util.Iterable at the same time, we're very inconsistent currently :)
|
2011-12-22 08:59:43 +00:00 |
|
Stepan Koltsov
|
a50067f6cf
|
ReadClassDataTest, working on generics
|
2011-12-21 22:28:23 +04:00 |
|
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 |
|