Commit Graph

120 Commits

Author SHA1 Message Date
Alex Tkachman 778ba44c64 added test for KT-232 2011-08-31 14:16:09 +02:00
Alex Tkachman 38146e1600 added test for KT-239 2011-08-31 14:06:53 +02:00
Alex Tkachman 13ca1ea274 added test for KT-242 2011-08-31 13:58:26 +02:00
Alex Tkachman d6a9e89175 fix for KT-245 2011-08-31 13:00:14 +02:00
Alex Tkachman 960aa59822 fix for KT-247 2011-08-31 12:04:07 +02:00
Alex Tkachman 1b8f96e53c fix for KT-261 2011-08-30 16:32:41 +02:00
Andrey Breslav 4c8aec3b1b Compile-time constants 2011-08-03 14:05:07 +04:00
Dmitry Jemerov 3592aff812 methods on objects should always be called via invokevirtual() and not invokeinterface() 2011-07-15 16:31:00 +02:00
Dmitry Jemerov 8b1118f907 support augmented assignment when ordinary binary operation method is overloaded 2011-07-14 20:36:15 +02:00
Dmitry Jemerov c88e3a1602 call overloaded *Assign methods for augmented assignment 2011-07-14 20:21:32 +02:00
Dmitry Jemerov 8a6ccdfbf4 support operator overloading for unary methods 2011-07-14 19:22:27 +02:00
Dmitry Jemerov e316989706 generate calls to overloaded binary operators and infix calls 2011-07-14 19:22:25 +02:00
Dmitry Jemerov 8c0c0f9d6c generate no-arg typeinfo 2011-07-12 13:41:57 +02:00
Andrey Breslav c2435f0f24 JET-126 Put 'where'-clause after the declaration 2011-07-08 22:44:56 +04:00
Dmitry Jemerov 8f71c188e9 correctly generate supertypes of class objects and object literals 2011-07-08 18:29:54 +02:00
Andrey Breslav d4020a422b JET-180 Rename typeof to typeinfo, type or make it a function 2011-07-08 20:27:59 +04:00
Dmitry Jemerov c302571bb2 test that fails 2011-07-08 13:41:01 +02:00
Dmitry Jemerov fc9f1eec4f TypeInfo.getClassObject(), for now implemented via reflection 2011-07-08 12:48:37 +02:00
Dmitry Jemerov dac522d7a9 use standard generateTypeInfo() call in pushTypeArguments() 2011-07-08 12:48:37 +02:00
Dmitry Jemerov 4e48e527b1 initial implementation of class objects 2011-07-08 12:48:36 +02:00
Dmitry Jemerov d42eedb0e0 support property access in pattern matching expressions 2011-07-06 20:17:38 +02:00
Andrey Breslav b621e89396 Syntax fixed 2011-07-06 18:50:55 +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
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 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
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
Maxim Shafirov b4ded8702c failing test 2011-06-20 14:45:27 +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 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