Commit Graph

387 Commits

Author SHA1 Message Date
Dmitry Jemerov a09e06b3d4 string templates 2011-07-12 16:34:50 +02:00
Dmitry Jemerov 8c0c0f9d6c generate no-arg typeinfo 2011-07-12 13:41:57 +02:00
Dmitry Jemerov b95219913a namespace property initializers are written directly to backing fields 2011-07-12 13:33:33 +02:00
Andrey Breslav b41e863d27 JET-142 Support string templates:
Old literals wiped out
2011-07-12 14:07:15 +04:00
Andrey Breslav c9b2242c2b Tests fixed 2011-07-08 21:39:44 +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 a691de74bc predicate operator implemented 2011-07-08 13:12:56 +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
Andrey Breslav 704f153a31 JET-174 Make continue work the same way in all contexts inside when
Guards are removed. Continue is not supported yet.
2011-07-07 17:18:29 +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
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