Commit Graph

398 Commits

Author SHA1 Message Date
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
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
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
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 da5d3e80c2 Merge remote-tracking branch 'origin/master' 2011-07-05 18:52:41 +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
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
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