Commit Graph

376 Commits

Author SHA1 Message Date
Dmitry Jemerov 47bb3d6a2c initial basic implementation of object literals; move anonymous class name mapping to JetTypeMapper; cleanup many usages of JetTypeMapper 2011-06-29 17:38:39 +02:00
Andrey Breslav 45d280de4f Merge branch 'master' of git.labs.intellij.net:jet 2011-06-27 14:45:05 +04:00
Andrey Breslav a35e67d043 JET-124 Sometimes local variables are not resolved in the callee position 2011-06-27 14:43:31 +04:00
Maxim Shafirov ef1cbbfb36 first 'real' closure test, green 2011-06-24 17:56:46 +04:00
Maxim Shafirov 5890813fc3 Extension closures test fixed 2011-06-23 21:24:49 +04:00
Andrey Breslav f4eab7d53f Merge remote branch 'origin/master'
Conflicts:
	idea/src/org/jetbrains/jet/codegen/ImplementationBodyCodegen.java
2011-06-23 20:31:04 +04:00
Andrey Breslav 3342515892 JET-121 Extension closure scope, empty? 2011-06-23 20:30:21 +04:00
Maxim Shafirov 48f40bba46 failing test 2011-06-23 16:58:07 +04:00
Maxim Shafirov 763e41fc5e Failing test, some work for frontend 2011-06-23 12:29:31 +04:00
Maxim Shafirov c75ad51d5c Closure and boxing parameter 2011-06-22 21:35:24 +04:00
Maxim Shafirov 90038fda02 Closure and boxing return value 2011-06-22 21:26:01 +04:00
Maxim Shafirov 3619e411a7 first "OK" closure test. 2011-06-22 18:46:56 +04:00
Andrey Breslav 760b643df9 SimplesClosure test fixed. 2011-06-20 16:18:49 +04:00
Maxim Shafirov b4ded8702c failing test 2011-06-20 14:45:27 +04:00
Andrey Breslav 88f4beb85c Expected test result for JET-113 2011-06-18 16:18:32 +04:00
Andrey Breslav 2c5c92c728 JET-114 Do not allow an anonymous initializer on the same line after 'get' of a property
+
'Toggle Error Reporting' Action
2011-06-17 21:20:05 +04:00
Dmitry Jemerov 1816ff7c76 StackValue.Property also needs to implement dupReceiver() 2011-06-17 17:33:14 +02:00
Dmitry Jemerov 167e5bb400 correctly generate Java superclass constructor calls; don't replace owner when Java method is called via a Jet class 2011-06-17 17:33:13 +02:00
Dmitry Jemerov 7b9ea52b7a initial support for secondary constructors; constructor generation refactored a bit 2011-06-17 17:33:13 +02:00
Dmitry Jemerov 54d2f25d75 generate checkcast instruction for 'as' calls; use accessors for accessing fields of other instances of the same class 2011-06-17 17:33:13 +02:00
Andrey Breslav 6d1823ac2a JET-113 Check returns in secondary constructors 2011-06-17 18:31:51 +04:00
Andrey Breslav 03460e2bcc Returns forbidden outside functions 2011-06-17 18:20:24 +04:00
Andrey Breslav 94f00509e2 JET-34 Require a return statement in a function with a block body
JET-77 Require a return type annotation for non-Unit returning functions with block bodies
2011-06-17 18:03:30 +04:00
Dmitry Jemerov 90c5a66362 allow namespace-qualified references; generate nested namespaces 2011-06-17 12:11:10 +02:00
Dmitry Jemerov a05b65f1a6 initial version of codegen for objects 2011-06-17 12:11:10 +02:00
Andrey Breslav 5968740638 'this()' resolution fixed for generic classes 2011-06-16 20:06:57 +04:00
Andrey Breslav 8786c6a667 Type annotations required on functions 2011-06-15 21:21:33 +04:00
Andrey Breslav c2fbbff782 JET-50 Drop the 'new' keyword 2011-06-15 18:00:22 +04:00
Andrey Breslav 41d2c73c06 No propagation of names bound in patterns to else-branches 2011-06-15 14:38:19 +04:00
Andrey Breslav e3dda48d09 Test for JET-94 Support enum classes 2011-06-14 22:08:58 +04:00
Andrey Breslav e4e5c7b0dc JET-94 Support enum classes 2011-06-14 22:06:56 +04:00
Andrey Breslav 400e939c21 Bindings are propagated over control flow, only directly, otherwise it is confusing 2011-06-14 18:48:27 +04:00
Andrey Breslav 79d3f318b9 Bindings are propagated over control flow, scope intersections are not supported yet 2011-06-13 16:12:32 +04:00
Andrey Breslav 3cacb512a3 Working on bindings in ifs 2011-06-13 14:33:32 +04:00
Andrey Breslav c2aceefe76 Working on bindings 2011-06-12 21:54:35 +04:00
Andrey Breslav d4b1658bde Autocasts & binding patterns in 'when'-expressions 2011-06-12 21:30:22 +04:00
Andrey Breslav 7536501607 LIFO order for autocasts 2011-06-12 18:38:05 +04:00
Andrey Breslav d64b5b3a74 Autocasts implemented 2011-06-12 18:21:35 +04:00
Andrey Breslav 11c0d924a6 One more case for nullability: comparison to a non-null expression 2011-06-12 15:32:50 +04:00
Andrey Breslav c3854c939c Negations supported 2011-06-10 19:21:39 +04:00
Andrey Breslav 49b60c3af8 More cases for nullability analysis 2011-06-10 19:07:23 +04:00
Andrey Breslav 9d3abf782c Nullability analysis supported for a little more simple cases 2011-06-10 17:21:28 +04:00
Andrey Breslav 41322a8658 Nullability analysis supported for simple cases 2011-06-10 17:06:35 +04:00
Andrey Breslav ccbb482b08 Infinite loop in the parser fixed 2011-06-08 18:49:02 +04:00
Andrey Breslav 8cffea6bc2 JET-84 Support generic parameter constraints for class objects
JET-89 Report a warning is the only upper bound is final
JET-87 Support where-clause for generic parameter constraints
2011-06-05 11:41:08 +04:00
Andrey Breslav 9450e1bdf9 JET-84 Support generic parameter constraints for class objects
Test for classes + small fixes
2011-06-05 01:25:03 +04:00
Andrey Breslav 4204db9cb0 JET-84 Support generic parameter constraints for class objects
Done for classes only, not for functions
2011-06-05 01:05:55 +04:00
Andrey Breslav a32c7a4d87 A test for JET-53 Support import of individual classes from Java packages 2011-06-04 18:35:30 +04:00
Andrey Breslav cc54631209 JET-86: Report errors for class objects 2011-06-04 15:32:45 +04:00
Andrey Breslav 7e2e46ec71 JET-61 Support class objects
JET-83 Interpret Java static methods as class objects' members
2011-06-03 19:03:33 +04:00