Commit Graph
71 Commits
Author SHA1 Message Date
Jb Evain ceed1102fe add test for lambda invocation
svn path=/trunk/mcs/; revision=95247
2008-02-08 14:06:21 +00:00
Jb Evain 71b88acc27 new tests
svn path=/trunk/mcs/; revision=95244
2008-02-08 13:44:05 +00:00
Jb Evain bb2cdb689f blah
svn path=/trunk/mcs/; revision=95242
2008-02-08 13:43:33 +00:00
Jb Evain dd99febff4 svn path=/trunk/mcs/; revision=94788 2008-02-04 21:29:23 +00:00
Jb Evain f4e0af16d0 add working ToString test
svn path=/trunk/mcs/; revision=94785
2008-02-04 21:22:31 +00:00
Jb Evain be83928e15 complete test
svn path=/trunk/mcs/; revision=94750
2008-02-04 15:15:16 +00:00
Jb Evain f8a31cba48 fix test
svn path=/trunk/mcs/; revision=94748
2008-02-04 15:08:27 +00:00
Jb Evain 6fbd2b6fa7 heh, got it wrong
svn path=/trunk/mcs/; revision=94747
2008-02-04 15:05:36 +00:00
Jb Evain 8cdc650689 add useful assertions
svn path=/trunk/mcs/; revision=94746
2008-02-04 15:00:48 +00:00
Jb Evain c170b3c707 clean
svn path=/trunk/mcs/; revision=94625
2008-02-02 13:49:37 +00:00
Jb Evain 5113f6adfe fix
svn path=/trunk/mcs/; revision=94621
2008-02-02 13:42:33 +00:00
Olivier Dufour 3c4fb45710 2008-02-01 Olivier Dufour <[email protected]>
* ExpressionTest_ListBind.cs:Add test for ListBind

svn path=/trunk/mcs/; revision=94573
2008-02-01 21:18:52 +00:00
Olivier Dufour 8054e83bb1 2008-02-01 Olivier Dufour <[email protected]>
* ExpressionTest_ElementInit.cs:Add test for ElementInit

svn path=/trunk/mcs/; revision=94531
2008-02-01 17:33:44 +00:00
Jb Evain d47231f2b4 2008-01-31 Jb Evain <[email protected]>
* ExpressionTest_ArrayLength.cs: add compile test.


svn path=/trunk/mcs/; revision=94481
2008-01-31 17:14:18 +00:00
Jb Evain f4fc165a34 2008-01-31 Jb Evain <[email protected]>
* ExpressionTest_Field.cs: add field access tests.


svn path=/trunk/mcs/; revision=94476
2008-01-31 16:54:11 +00:00
Jb Evain e2aa161e28 2008-01-30 Jb Evain <[email protected]>
* ExpressionTest_CallWithExpression.cs: add tests for very simple calls.


svn path=/trunk/mcs/; revision=94414
2008-01-30 20:05:10 +00:00
Jb Evain aad8907b1b 2008-01-30 Jb Evain <[email protected]>
* ExpressionTest_New.cs: add tests for emitting new reference types.


svn path=/trunk/mcs/; revision=94408
2008-01-30 19:26:06 +00:00
Jb Evain 8f735b51a2 add tests for call arguments
svn path=/trunk/mcs/; revision=94258
2008-01-29 16:13:11 +00:00
Jb Evain d1a25ba403 not working yet
svn path=/trunk/mcs/; revision=94241
2008-01-29 12:51:17 +00:00
Jb Evain b4978c5821 add some tests for New
svn path=/trunk/mcs/; revision=94174
2008-01-28 22:27:51 +00:00
Jb Evain fd45b12d99 2008-01-27 Jb Evain <[email protected]>
* ExpressionTest_Condition.cs: tests for compilation of
	conditionals.


svn path=/trunk/mcs/; revision=94093
2008-01-27 22:02:56 +00:00
Jb Evain b00be05878 2008-01-27 Jb Evain <[email protected]>
* ExpressionTest_Lambda.cs: add test for the
	Lambda(Expression,ParameterExpression[]) method.


svn path=/trunk/mcs/; revision=94076
2008-01-27 19:16:10 +00:00
Jb Evain 6d553d1949 2008-01-27 Jb Evain <[email protected]>
* ExpressionTest_Lambda.cs: add tests to assert the type
	of the LambdaExpressions.


svn path=/trunk/mcs/; revision=94066
2008-01-27 18:15:01 +00:00
Miguel de Icaza c11152b046 2008-01-22 Miguel de Icaza <[email protected]>
* BinaryExpression.cs: Unleash the power of cut and paste.

	Bring a bunch of operatros from mcs/expression.cs

	* Expression.cs: There is no op_LogicalAnd or op_LogicalOr, I just
	used those from mcs, that was wrong.   use the proper ones, clean
	up the result.

	* BinaryExpression.cs: Add method invocations for binary methods. 


svn path=/trunk/mcs/; revision=93613
2008-01-23 01:18:25 +00:00
Miguel de Icaza aeaffaada3 2008-01-22 Miguel de Icaza <[email protected]>
* Expression.cs: There is no op_LogicalAnd or op_LogicalOr, I just
	used those from mcs, that was wrong.   use the proper ones, clean
	up the result.

	* BinaryExpression.cs: Add method invocations for binary methods. 



svn path=/trunk/mcs/; revision=93605
2008-01-22 23:51:22 +00:00
Miguel de Icaza 0a6c4c0470 Shut up all those warnings
svn path=/trunk/mcs/; revision=93597
2008-01-22 22:50:33 +00:00
Jb Evain 32f6e33667 add NewArrayInit tests
svn path=/trunk/mcs/; revision=93527
2008-01-22 14:17:16 +00:00
Jb Evain 77682e733f tests for NewArrayBounds
svn path=/trunk/mcs/; revision=93525
2008-01-22 13:59:06 +00:00
Jb Evain 1d4e3699f0 complete tests
svn path=/trunk/mcs/; revision=93488
2008-01-22 09:18:16 +00:00
Miguel de Icaza b9b9a664e0 2008-01-22 Miguel de Icaza <[email protected]>
* BinaryExpression.cs (EmitCoalesce): Add support for emitting
	code for Coalesce.

	TODO: this does not use the "Conversion" Lambda, which am not sure
	who generates this or what it is used for.

	(EmitLogical): Fix a couple of bugs in AndAlso, OrElse.	

	* Expression.cs: Add support for Coalesce.
	(BinaryCoreCheck): Move more checking here, instead of the helper
	routines, will remove them next.
	
	* LambdaExpression.cs (Compile): Create the delegate last, so we
	manage to save the assembly while debugging in case of error


svn path=/trunk/mcs/; revision=93480
2008-01-22 07:01:58 +00:00
Miguel de Icaza 58f4da29c3 Add
svn path=/trunk/mcs/; revision=93389
2008-01-21 14:18:10 +00:00
Jb Evain 43f0387752 constant rocks
svn path=/trunk/mcs/; revision=93385
2008-01-21 14:08:28 +00:00
Miguel de Icaza b032fe6df6 2008-01-21 Miguel de Icaza <[email protected]>
* Start code generation for nullables, currently this generates
	incorrect code for things like:
	
	Expression<Func<int?, int?, int?>> e2 = (a, b) => a + b;
	e2.Compile ().Invoke (null, 3))

	This should return null, but returns something else.

	* Introduce LINQ_DBG env variable, which generates a linq file in
	/tmp;   It currently does not work as well as it should, as the
	Func<> parameters do not mwatch the generated method.
	Investigate. 


svn path=/trunk/mcs/; revision=93369
2008-01-21 06:05:28 +00:00
Miguel de Icaza 1affd8bf07 2008-01-20 Miguel de Icaza <[email protected]>
Introduce support for Nullable arguments, no code is generated for
	these yet, its only tests + node creation behavior at this point.
	
	* Expression.cs (BinaryCoreCheck): Do not allow "int?" and "int"
	as operators, they must both be nullable.

	NullableTypes in the arguments are transformed into the underlying
	values when doing the method validation.  


svn path=/trunk/mcs/; revision=93368
2008-01-21 00:45:16 +00:00
Miguel de Icaza 8b7e464dc9 Add basic support for parameters
svn path=/trunk/mcs/; revision=93297
2008-01-18 22:06:53 +00:00
Miguel de Icaza baf8a933e3 Fix the issue that JB found
svn path=/trunk/mcs/; revision=93271
2008-01-18 16:05:22 +00:00
Jb Evain f8ccb0f787 2008-01-18 Jb Evain <[email protected]>
* ExpressionTest_GreaterThan|GreaterThanOrEqual.cs
	* ExpressionTest_LessThan|LessThanOrEqual.cs: new tests.

svn path=/trunk/mcs/; revision=93263
2008-01-18 15:00:20 +00:00
Jb Evain ceef9b6f96 2008-01-18 Jb Evain <[email protected]>
* ExpressionTest_Negate.cs
	ExpressionTest_Not.cs
	ExpressionTest_UnaryPlus.cs: test for some unary operators.

svn path=/trunk/mcs/; revision=93255
2008-01-18 14:09:04 +00:00
Miguel de Icaza 9586c1c5c5 2008-01-18 Miguel de Icaza <[email protected]>
* BinaryExpression.cs: Add support for emitting code for some
	operators (ported from the Mono C# compiler).   

	Add tests.


svn path=/trunk/mcs/; revision=93231
2008-01-18 08:03:10 +00:00
Miguel de Icaza 488a45b5a1 2008-01-17 Miguel de Icaza <[email protected]>
Beginning of code generation framework for Linq.Expressions.
	Some code was borrowed by from the C# compiler
	
	* Expression_T.cs: Fill in the blanks.
	
	* LambdaExpression.cs: Validation of parameters mostly, a tiny bit
	of codegen.

	* ConstantExpression.cs: Mostly done, need to write tests for
	non-fundamental types and other ValueType initializations. 



svn path=/trunk/mcs/; revision=93222
2008-01-18 00:24:01 +00:00
Miguel de Icaza c4f9184d02 2008-01-16 Miguel de Icaza <[email protected]>
* Expression.cs: Add support for user-defined operators. 

	Put back various binary operator tests.


svn path=/trunk/mcs/; revision=93130
2008-01-17 04:03:31 +00:00
Jb Evain e7bfcb87a1 2008-01-16 Jb Evain <[email protected]>
* ExpressionTest_CallWithExpression.cs: test for static method.

svn path=/trunk/mcs/; revision=93040
2008-01-16 14:12:55 +00:00
Miguel de Icaza c12187096f 2008-01-15 Miguel de Icaza <[email protected]>
* Expression.cs: Do validation on the method parameters and use
	the return type if provided. 


svn path=/trunk/mcs/; revision=93010
2008-01-16 01:31:44 +00:00
Jb Evain ebf34812a8 2008-01-15 Jb Evain <[email protected]>
* ExpressionTest_CallWithExpression.cs: tests
	for Call (Expression, ...)


svn path=/trunk/mcs/; revision=92990
2008-01-15 21:57:27 +00:00
Jb Evain dc4b281971 rename the specialized Call test fixture
svn path=/trunk/mcs/; revision=92984
2008-01-15 21:38:15 +00:00
Jb Evain 6da570fa4e 2008-01-15 Jb Evain <[email protected]>
* ExpressionTest_Condition.cs: add tests for Expression.Condition.


svn path=/trunk/mcs/; revision=92951
2008-01-15 14:21:33 +00:00
Jb Evain db7207ef3a 2008-01-15 Jb Evain <[email protected]>
* ExpressionTest.cs: tests for Expression.Parameter


svn path=/trunk/mcs/; revision=92948
2008-01-15 13:55:15 +00:00
Miguel de Icaza 68b16f4347 2008-01-14 Miguel de Icaza <[email protected]>
* Expression.cs: Bring back the (most) of binary operators.  Added
	type checking as well and reorganized the source file by topic
	instead of alphabetical sorting.


svn path=/trunk/mcs/; revision=92917
2008-01-15 00:19:41 +00:00
Miguel de Icaza 622befc4b3 2008-01-14 Miguel de Icaza <[email protected]>
* Expression.cs (Constant, MakeBinary and consumers of it): Some
	more fill-up changes.

	MakeBinary will need much more work to support user-provided
	types. 


svn path=/trunk/mcs/; revision=92833
2008-01-14 05:02:54 +00:00
Jb Evain 8e731d9d8f fix GetActionType for the non generic type
svn path=/trunk/mcs/; revision=92541
2008-01-09 19:36:05 +00:00