Commit Graph

2199 Commits

Author SHA1 Message Date
Alex Tkachman f40cf97279 fix for KT-870 - when without parameter 2011-12-25 15:55:57 +02:00
Andrey Breslav f52eae71d0 GreatSyntacticShift: 'namespace' -> 'package' 2011-12-25 15:51:59 +04:00
Alex Tkachman 9f4cd37dbb stdlib included in to cli-compilation 2011-12-25 12:28:00 +02:00
Alex Tkachman f4704adc3f proper archiving of stdlib sources 2011-12-25 12:08:28 +02: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
Maxim Shafirov 28d9138798 Proper rt.jar detection on macs 2011-12-23 21:01:04 +03: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 310a49eaff added issue comments for compiler bug 2011-12-23 16:08:12 +00:00
James Strachan 8db24f12d9 added link to compiler bug issue in comment 2011-12-23 16:00:43 +00:00
James Strachan eb3f895763 Merge remote-tracking branch 'origin/master' 2011-12-23 15:52:50 +00:00
Maxim Shafirov 423494cef0 missed shift 2011-12-23 19:51:25 +03: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
James Strachan db76e28c6d added a little experimental spike of a text and markup based template library for internal DSLs for templating (which external DSLs like Jade / Razor / Velocity / Erb / JSP style) could layer on top of. Mails to follow shortly :) 2011-12-23 13:40:03 +00:00
Alex Tkachman f64c02c80a test dsl example 2011-12-22 17:24:50 +02:00
Alex Tkachman cf17beab8b test dsl 2011-12-22 14:58:25 +02:00
Alex Tkachman 3a3af75c3d Merge remote branch 'origin/master' 2011-12-22 14:50:44 +02:00
Maxim Shafirov e15ecc29da Fix TC build. We don't have any bootsrap phase yet so Kotlin compiler is not available during build. Thus, any reference from Java to Kotlin class appears broken. 2011-12-22 16:32:33 +03:00
Alex Tkachman b0b14ecaa2 examples converted to new syntax 2011-12-22 14:50:21 +02:00
Alex Tkachman 6d41dee6f7 static typ[e info for Any & Any? 2011-12-22 14:24:15 +02:00
Maxim Shafirov 954120fe3e KT-812 2011-12-22 15:53:34 +03:00
Maxim Shafirov 14862f7d39 Initial java facade tests 2011-12-22 15:33:34 +03: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 a7810c4396 another attempt at getting a flatMap test working, not quite figured out the generics yet :) 2011-12-22 09:09:14 +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
James Strachan 060719e71b added a test suite to run all the test cases (cheating, using java :) 2011-12-22 08:37:37 +00:00
Stepan Koltsov a50067f6cf ReadClassDataTest, working on generics 2011-12-21 22:28:23 +04:00
Maxim Shafirov fea25e629f merge commit 2011-12-21 09:12:21 +03:00
Maxim Shafirov 34e5f60496 Correct class object mapping in kotlin => java run 2011-12-21 09:07:22 +03:00
Maxim Shafirov 86bb01edcf Correct inner/outer class relation in kotlin => java run 2011-12-21 09:07:21 +03:00
Maxim Shafirov dd614569c0 Class objects are statics. I guess top level classes shall be static as well 2011-12-21 09:07:20 +03:00
James Strachan 85889a3762 Merge branch 'master' of git+ssh://git.labs.intellij.net/jet 2011-12-21 16:27:22 +00: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
Andrey Breslav e0d93745c4 Merge remote-tracking branch 'origin/master' 2011-12-21 17:44:15 +02:00
Andrey Breslav 04696d47f3 Devclub slides 2011-12-21 17:41:09 +02:00
Stepan Koltsov ec239e89ae fix tests broken yesterday
sorry, everyone
2011-12-21 17:03:24 +04:00
Nikolay Krasko 9c5ff3fa7f Refactoring: move main completion resolver out of Idea plugin. 2011-12-21 16:21:24 +04: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 529bcaf921 GreatSyntacticShift: shift action removed 2011-12-21 11:51:40 +02:00
Andrey Breslav 889c7c0002 GreatSyntacticShift: erroneous fix reverted 2011-12-21 11:48:24 +02:00
Andrey Breslav f67c6549eb GreatSyntacticShift: Codegen testdata fixed 2011-12-21 11:45:50 +02:00
Andrey Breslav 2d1c529dd1 Merge remote-tracking branch 'origin/master' 2011-12-21 11:37:40 +02:00
Andrey Breslav a3880923e1 GreatSyntacticShift: Disable complex token merging in type ref parsing, to fulfill kt307.jet test 2011-12-21 11:30:06 +02:00
Andrey Breslav f73b7522b9 GreatSyntacticShift: CheckerTestUtilTest fixed 2011-12-21 11:26:47 +02:00
Andrey Breslav 3808bff1ce GreatSyntacticShift: Checker test data fixed 2011-12-21 11:24:04 +02:00
Andrey Breslav 46832aaa5d GreatSyntacticShift: Resolve test data fixed 2011-12-21 11:08:31 +02:00