Commit Graph

934 Commits

Author SHA1 Message Date
Dmitry Jemerov 026eadda7a fix codegen after JetWhenConditionWithExpression removal 2011-07-07 14:14:29 +02:00
Andrey Breslav 498f85e49e Drop JetWhenConditionWithExpression, replaced with JetWhenConditionIsPattern with JetExpressionPattern inside 2011-07-07 16:08:43 +04:00
Dmitry Jemerov d42eedb0e0 support property access in pattern matching expressions 2011-07-06 20:17:38 +02:00
Dmitry Jemerov 8d28105a9e support multiple conditions on a 'when' entry 2011-07-06 19:28:00 +02:00
Dmitry Jemerov 889345e7f7 initial support for binding patterns in pattern matching (very fragile in terms of stack manipulation :( ) 2011-07-06 18:39:18 +02:00
Andrey Breslav a744c183c4 JET-172 Allow many parameters of a function literals to be declared without parentheses 2011-07-06 20:30:28 +04:00
Andrey Breslav 900143af5b JET-172 Allow many parameters of a function literals to be declared without parentheses 2011-07-06 20:21:22 +04:00
Andrey Breslav d1b8a6b5c7 Multiple conditions in when entries 2011-07-06 19:36:09 +04:00
Andrey Breslav b621e89396 Syntax fixed 2011-07-06 18:50:55 +04:00
Dmitry Jemerov 50a1eeeb59 support for calls in pattern matching 2011-07-06 16:30:17 +02:00
Dmitry Jemerov e61f69437d put "owner from call" flag into CallableMethod 2011-07-06 16:30:17 +02:00
Dmitry Jemerov 9497b41664 put receiver information into CallableMethod 2011-07-06 16:30:17 +02:00
Dmitry Jemerov d824997dcf refactor visitCallExpression() in preparation for supporting calls in pattern matching 2011-07-06 16:30:16 +02:00
Andrey Breslav 7adb2d1381 tests for
JET-168 Improve the parser for function and tuple types as receiver types
2011-07-06 18:18:47 +04:00
Andrey Breslav bfac08235e Merge remote branch 'origin/master' 2011-07-06 18:18:25 +04:00
Andrey Breslav e0d597a1bc JET-140 Change function type syntax
and tests for
JET-168 Improve the parser for function and tuple types as receiver types
2011-07-06 18:18:11 +04:00
Andrey Breslav a2721d3309 JET-140 Change function type syntax
and tests for
JET-168 Improve the parser for function and tuple types as receiver types
2011-07-06 17:55:41 +04:00
Maxim Shafirov 4cf00a8548 Capture this in closures 2011-07-06 17:37:40 +04:00
Dmitry Jemerov 0c85c53c64 pattern matching for tuple and expression patterns 2011-07-06 15:24:34 +02:00
Dmitry Jemerov 3fe728dff6 generatePatternMatch() returns StackValue for result 2011-07-06 13:49:52 +02:00
Dmitry Jemerov 71f521c05d use StackValue (and StackValue.expression() in particular) instead of Runnable as the expression in instanceof check 2011-07-06 13:44:47 +02:00
Dmitry Jemerov 89cafb3152 tuple literals 2011-07-06 13:01:14 +02:00
Dmitry Jemerov d71bcf5df4 [] for collections 2011-07-06 12:31:18 +02:00
Dmitry Jemerov 7b47d67dca final (?) step of CallableMethod refactoring 2011-07-06 12:23:29 +02:00
Dmitry Jemerov 8317fbc290 closure as callable method 2011-07-06 12:15:05 +02:00
Dmitry Jemerov 5eb2f913b3 one more step of CallableMethod refactoring 2011-07-06 12:11:11 +02:00
Dmitry Jemerov 516738ba2f one more example 2011-07-06 11:55:51 +02:00
Maxim Shafirov c81b7869f9 alignments are nice 2011-07-05 22:09:36 +04:00
Maxim Shafirov c1e2849e17 Proper this for closure classes 2011-07-05 22:09:23 +04:00
Maxim Shafirov da5d3e80c2 Merge remote-tracking branch 'origin/master' 2011-07-05 18:52:41 +04:00
Maxim Shafirov 78873765d8 alignments are nice 2011-07-05 18:52:13 +04:00
Maxim Shafirov cde6d5765f Introducing class context stack 2011-07-05 18:51:58 +04:00
Andrey Breslav 24819c2c95 'Unsupported' exception replaces with an error 2011-07-05 16:47:12 +04:00
Andrey Breslav 0c5eca16d5 if (a != null) return a // nullability info considered 2011-07-05 16:08:25 +04:00
Andrey Breslav 4121aed773 !is supported in data flow info for ifs 2011-07-05 10:55:33 +04:00
Andrey Breslav b19ad2ccb8 IO added to Library.jet
Header level changed in control.grm
2011-07-05 10:21:45 +04:00
Andrey Breslav 96cd0d1ae2 Small fix in nullablilty handling 2011-07-04 14:34:04 +04:00
Maxim Shafirov 6bbf1a61fe Failing tests 2011-07-04 13:27:24 +04:00
Maxim Shafirov 7d63d512b2 ClassContext refactoring, initial 2011-07-04 13:27:15 +04:00
Dmitry Jemerov ef30fde1c2 use CallableMethod also for Java constructor calls 2011-06-30 20:46:23 +02:00
Dmitry Jemerov 4b8f40b238 use CallableMethod also for Jet constructor calls 2011-06-30 20:30:35 +02:00
Dmitry Jemerov 70dfda124e add list of value parameter types to CallableMethod 2011-06-30 20:16:43 +02:00
Dmitry Jemerov 81c623a156 one more small step of CallableMethod refactoring 2011-06-30 20:09:32 +02:00
Dmitry Jemerov ae4a6e1558 more examples 2011-06-30 20:03:01 +02:00
Dmitry Jemerov 5248699bee refactoring: introduce CallableMethod abstraction (owner, signature and invoke opcode) 2011-06-30 19:52:14 +02:00
Dmitry Jemerov d4453c055e pass type arguments to generic functions 2011-06-30 18:57:30 +02:00
Dmitry Jemerov 1bd4eaf474 'is' works on class type parameters 2011-06-30 18:23:34 +02:00
Dmitry Jemerov e72aec943e use correct bytecode for calling methods on Java interfaces 2011-06-30 18:03:30 +02:00
Dmitry Jemerov cb1df5e2aa uncomment test which now passes 2011-06-30 17:59:24 +02:00
Dmitry Jemerov 68c8ae3a31 honor abstract modifier for classes 2011-06-30 17:54:14 +02:00