Commit Graph
176 Commits
Author SHA1 Message Date
Jb Evain 6d8ee2b854 2009-02-24 Jb Evain <[email protected]>
* Expression.cs (BinaryCoreCheck): fix comparison of enums


svn path=/trunk/mcs/; revision=127871
2009-02-24 17:09:23 +00:00
Jb Evain 2313558b90 2009-02-23 Jb Evain <[email protected]>
* Expression.cs (IsNumber): actually decimal is rather a special
	case, and not a primitive number.


svn path=/trunk/mcs/; revision=127754
2009-02-23 17:03:21 +00:00
Jb Evain 59e1ea03d7 2009-02-23 Jb Evain <[email protected]>
* Expression.cs (BinaryCoreCheck): add decimal operations
	are provided by custom operators.


svn path=/trunk/mcs/; revision=127746
2009-02-23 16:41:59 +00:00
Jb Evain 3f5524d8ed 2008-11-19 Jb Evain <[email protected]>
* Expression.cs: protect against open generic methods.


svn path=/trunk/mcs/; revision=119350
2008-11-19 17:29:25 +00:00
Atsushi Eno e9bef803a2 2008-10-08 Atsushi Enomoto <[email protected]>
* Expression.cs : give us information about which type does not
	  implement Emit().


svn path=/trunk/mcs/; revision=115194
2008-10-08 10:42:26 +00:00
Jb Evain 8f9bbdd2e7 2008-10-03 Jb Evain <[email protected]>
* Expression.cs: make sure we properly test complex generic methods
	as a Call candidate.


svn path=/trunk/mcs/; revision=114803
2008-10-03 21:59:03 +00:00
Jb Evain 175a8f2430 2008-09-01 Jb Evain <[email protected]>
* Expression.cs: guard against null parameters passed to Lambda.


svn path=/trunk/mcs/; revision=112032
2008-09-01 14:12:25 +00:00
Jb Evain ddf0460e04 2008-08-07 Jb Evain <[email protected]>
* Expression.cs (GetAssociatedProperty): strengthen accessors
	comparisons.

svn path=/trunk/mcs/; revision=109858
2008-08-07 13:49:28 +00:00
Jb Evain 82ca793bbd 2008-07-19 Jb Evain <[email protected]>
* Expression.cs (Call, Field, Property): disallow instance arguments
	on static members. See ms connect #339351.


svn path=/trunk/mcs/; revision=108306
2008-07-19 07:57:15 +00:00
Jb Evain dcc7953427 2008-07-18 Jb Evain <[email protected]>
* Expression.cs, BinaryExpression.cs: fix retrieval of true and false
	operators.


svn path=/trunk/mcs/; revision=108217
2008-07-18 11:28:32 +00:00
Jb Evain 85f8c499be turn GetNotNullable into an extension method for consistency
svn path=/trunk/mcs/; revision=108212
2008-07-18 09:05:17 +00:00
Jb Evain 5fb3229bc4 simplify
svn path=/trunk/mcs/; revision=108211
2008-07-18 08:39:21 +00:00
Jb Evain 65439303c6 refactoring
svn path=/trunk/mcs/; revision=105578
2008-06-11 13:07:11 +00:00
Jb Evain dfc7855503 add support for user defined lifted logical operators
svn path=/trunk/mcs/; revision=105405
2008-06-10 11:27:36 +00:00
Jb Evain eecff911da 2008-06-09 Jb Evain <[email protected]>
* Extensions.cs (Type.IsExpression): add
	* Expression.cs (CheckMethodArguments): modify the argument list
	to quote arguments when if necessary.



svn path=/trunk/mcs/; revision=105324
2008-06-09 15:31:19 +00:00
Jb Evain 1e7138db2c 2008-06-09 Jb Evain <[email protected]>
* Expression.cs (CheckLambda): quote body if required.


svn path=/trunk/mcs/; revision=105320
2008-06-09 15:09:16 +00:00
Jb Evain dea4a0bbce don't use CreateInstance missing in SL2
svn path=/trunk/mcs/; revision=105297
2008-06-09 11:40:48 +00:00
Jb Evain a3132c3d8f remove use of methods not present in SL2
svn path=/trunk/mcs/; revision=105294
2008-06-09 11:23:37 +00:00
Jb Evain 32e96dd798 separate normal coalesce operations from converted coalesce nodes
svn path=/trunk/mcs/; revision=105235
2008-06-07 15:59:02 +00:00
Jb Evain 2a62b7117a oh the joy of deleting code
svn path=/trunk/mcs/; revision=105085
2008-06-05 18:30:44 +00:00
Jb Evain 9bec534a20 fix convert checked for nullable to not nullable
svn path=/trunk/mcs/; revision=105083
2008-06-05 18:27:56 +00:00
Jb Evain cae203e7c5 2008-06-05 Jb Evain <[email protected]>
* Expression.cs (GetUserConversionMethod): check for convertion
	operators on both types.


svn path=/trunk/mcs/; revision=105079
2008-06-05 18:00:16 +00:00
Jb Evain 867c722eb1 fix typo
svn path=/trunk/mcs/; revision=105066
2008-06-05 17:20:50 +00:00
Jb Evain c69a4e62c7 that was so wrong
svn path=/trunk/mcs/; revision=105043
2008-06-05 15:35:19 +00:00
Jb Evain c513fa2c61 blah
svn path=/trunk/mcs/; revision=105040
2008-06-05 15:33:22 +00:00
Jb Evain fc92a23cb3 2008-06-05 Jb Evain <[email protected]>
* Expression.cs (ConditionalBinaryCheck): if a method is passed,
	checked that the operators true and false are also defined.


svn path=/trunk/mcs/; revision=105031
2008-06-05 14:19:31 +00:00
Jb Evain 878d67efab fix typo
svn path=/trunk/mcs/; revision=105020
2008-06-05 13:10:18 +00:00
Jb Evain c0b1ca0c1b fix left and right shift
svn path=/trunk/mcs/; revision=105015
2008-06-05 12:46:16 +00:00
Jb Evain 450c21ef27 correctly check unary operators parameters
svn path=/trunk/mcs/; revision=104996
2008-06-05 12:10:48 +00:00
Jb Evain ecbe887cad of course we can test bool equality
svn path=/trunk/mcs/; revision=104990
2008-06-05 11:41:23 +00:00
Jb Evain 3f3ca7e3b6 better check parameters
svn path=/trunk/mcs/; revision=104984
2008-06-05 11:29:26 +00:00
Jb Evain 7b29921f4d 2008-06-05 Jb Evain <[email protected]>
* Extensions.cs: Add Type.MakeNullableType helper.
	* Expression.cs (MakeSimpleBinary, MakeBoolBinar): Properly
	creat lifted/lifted to null/not lifted
	user defined binary expressions.
	* BinaryExpression.cs (Emit): implement compilation of
	lifted and lifted to null user defined binary operators.


svn path=/trunk/mcs/; revision=104973
2008-06-05 10:56:44 +00:00
Jb Evain 711731434c 2008-06-05 Jb Evain <[email protected]>
* Expression.cs (MakeSimpleUnary): properly create lifted/not lifted
	unary expressions with user defined operators.
	* UnaryExpression.cs (Emit): fix compilation of lifted user operators.


svn path=/trunk/mcs/; revision=104965
2008-06-05 09:43:52 +00:00
Jb Evain d1653dae48 add fixme
svn path=/trunk/mcs/; revision=104673
2008-06-02 15:17:43 +00:00
Jb Evain 5ff70bb9bb on-going work on user defined unary expressions
svn path=/trunk/mcs/; revision=104536
2008-05-30 14:48:48 +00:00
Jb Evain d15222c9ca make IsNullable an extension method
svn path=/trunk/mcs/; revision=104493
2008-05-30 09:37:59 +00:00
Jb Evain 75ff9b5f9a 2008-05-29 Jb Evain <[email protected]>
* Expression.cs (Power): allow bool?.
	* BinaryExpression.cs: properly deal with lifted power expression.


svn path=/trunk/mcs/; revision=104453
2008-05-29 18:13:35 +00:00
Jb Evain 0cccdcfea3 oh
svn path=/trunk/mcs/; revision=103288
2008-05-15 15:05:48 +00:00
Jb Evain 42cecd1166 use new method
svn path=/trunk/mcs/; revision=103286
2008-05-15 15:02:23 +00:00
Jb Evain 35926a2037 oops, missed that one
svn path=/trunk/mcs/; revision=103273
2008-05-15 13:09:34 +00:00
Jb Evain c8cdf0ba3c 2008-05-08 Jb Evain <[email protected]>
* Expression.cs, EmitContext.cs: deal with call to methods
	with byref parameters.


svn path=/trunk/mcs/; revision=102813
2008-05-08 15:35:37 +00:00
Roei Erez e9a0b8ef7f isolate unsupported flow using TARGET_JVM compilation flag.
svn path=/trunk/mcs/; revision=102701
2008-05-07 07:46:48 +00:00
Jb Evain 57257c33a2 2008-05-03 Jb Evain <[email protected]>
* LambdaExpression.cs: move checks to Expression
	* Expression.cs: apply check for both typed and untyped lambda
	creation, so that the constructor does not throws exception.
	Needed to create instances of Expression<> for untyped lambda
	factory method. Fixes #386322.


svn path=/trunk/mcs/; revision=102398
2008-05-02 22:50:14 +00:00
Jb Evain 1c840889d3 blah
svn path=/trunk/mcs/; revision=102367
2008-05-02 19:11:58 +00:00
Jb Evain 04b6830abb hide helper methods to the world
svn path=/trunk/mcs/; revision=102366
2008-05-02 19:09:39 +00:00
Jb Evain 1aa921d5f0 2008-05-02 Jb Evain <[email protected]>
* Expression.cs: make Emit virtual instead of abstract,
	to allow externals libraries to extend Expression.
	Patch by Jan Oravec <[email protected]>. Fixes #386097.


svn path=/trunk/mcs/; revision=102364
2008-05-02 18:56:41 +00:00
Jb Evain ce6f081f4c 2008-04-27 Jb Evain <[email protected]>
* Expression.cs: improve method finder.


svn path=/trunk/mcs/; revision=101992
2008-04-27 17:15:30 +00:00
Jb Evain 9949715217 rename
svn path=/trunk/mcs/; revision=101972
2008-04-27 12:03:57 +00:00
Jb Evain 59a8d738f1 protect against void types
svn path=/trunk/mcs/; revision=101702
2008-04-24 17:15:11 +00:00
Jb Evain 7bf7ffd09f rename
svn path=/trunk/mcs/; revision=101699
2008-04-24 17:08:52 +00:00