Commit Graph

371 Commits

Author SHA1 Message Date
Dmitry Jemerov 50a1eeeb59 support for calls in pattern matching 2011-07-06 16:30:17 +02: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
Dmitry Jemerov 0c85c53c64 pattern matching for tuple and expression patterns 2011-07-06 15:24:34 +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
Maxim Shafirov 6bbf1a61fe Failing tests 2011-07-04 13:27:24 +04: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
Dmitry Jemerov 840f9ffef1 store nullability information in TypeInfo 2011-06-30 17:46:52 +02:00
Dmitry Jemerov 01a08ecd04 use hard-coded TypeInfo instances for primitive types 2011-06-30 17:18:16 +02:00
Dmitry Jemerov 8a1b9933e4 assorted fixes to handle boxing correctly when calling generic methods/properties; rename getUnsubstitutedValueParameters/ReturnType to getValueParameters/ReturnType 2011-06-30 16:48:13 +02:00
Dmitry Jemerov f7a04097bb couple of fixes to allow generation of generic extension functions 2011-06-30 16:42:43 +02:00
Dmitry Jemerov b847fd1d09 failing test for generic extension function 2011-06-30 15:09:06 +02:00
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 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 c327ace32a Moving common parts to GenerationState 2011-06-23 19:59:27 +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 ef601c5710 JetTypeInferrer refactored to enable transactional traces (needed for multi-trial type inference) 2011-06-18 21:54:16 +04:00
Andrey Breslav f1d00f3f59 Cosmetics + Debug info 2011-06-18 21:04:10 +04:00
Dmitry Jemerov 1816ff7c76 StackValue.Property also needs to implement dupReceiver() 2011-06-17 17:33:14 +02:00
Dmitry Jemerov b7e6de73e8 putting a compare on stack as void type is a nop, not an error 2011-06-17 17:33:13 +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 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 8786c6a667 Type annotations required on functions 2011-06-15 21:21:33 +04:00
Dmitry Jemerov a5fdcf9fb1 moving stuff around 2011-06-15 18:54:41 +02:00
Andrey Breslav c10c19b848 Services for completion 2011-06-15 19:20:12 +04:00
Andrey Breslav c2fbbff782 JET-50 Drop the 'new' keyword 2011-06-15 18:00:22 +04:00
Andrey Breslav d64b5b3a74 Autocasts implemented 2011-06-12 18:21:35 +04:00
Andrey Breslav 70ed1f8083 Tests fixed 2011-06-12 15:14:13 +04:00
Andrey Breslav 49b60c3af8 More cases for nullability analysis 2011-06-10 19:07:23 +04:00
Andrey Breslav 9e3453a44e Tests fixed
JET-85 Generate code for Java's fully qualified names -- is still open
2011-06-06 21:14:11 +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
Andrey Breslav f0b8ef6946 Support for local objects 2011-06-03 16:02:26 +04:00
Andrey Breslav ed16a29a5f JET-76 Support object declarations
JET-62 Support object-expressions
No tests yet
2011-06-02 20:58:12 +04:00