Commit Graph
91 Commits
Author SHA1 Message Date
Jb Evain 8fbd061b74 update
svn path=/trunk/mcs/; revision=94626
2008-02-02 13:49:57 +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 523011ea97 update
svn path=/trunk/mcs/; revision=94417
2008-01-30 20:47:27 +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
Jb Evain 8c559435e9 update
svn path=/trunk/mcs/; revision=93900
2008-01-25 14:32:27 +00:00
Jb Evain 770423c178 should be fixed now
svn path=/trunk/mcs/; revision=93792
2008-01-24 13:43:19 +00:00
Stephane Delcroix 76d1357965 2008-01-24 Stephane Delcroix <[email protected]>
* TimeZoneInfo.TransitionTime.cs: check for a whole number of
	milliseconds instead of a whole number of seconds.

svn path=/trunk/mcs/; revision=93788
2008-01-24 12:45:29 +00:00
Stephane Delcroix 4da3e53637 2008-01-23 Stephane Delcroix <[email protected]>
* TimeZoneInfo.AdjustmentRuleTests.cs:
	* TimeZoneInfo.TransitionTimeTests.cs: disable failing tests at runtime on
	windows

svn path=/trunk/mcs/; revision=93626
2008-01-23 07:18:04 +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
Stephane Delcroix 54b5c225bf 2008-01-22 Stephane Delcroix <[email protected]>
* TimeZoneInfoTest.cs: disable failing tests at runtime on windows

svn path=/trunk/mcs/; revision=93514
2008-01-22 12:03:03 +00:00
Jb Evain 6f31360c31 working
svn path=/trunk/mcs/; revision=93511
2008-01-22 11:42:01 +00:00
Jb Evain 42742ba4bd working
svn path=/trunk/mcs/; revision=93509
2008-01-22 11:34:55 +00:00
Jb Evain 1d4e3699f0 complete tests
svn path=/trunk/mcs/; revision=93488
2008-01-22 09:18:16 +00:00
Jb Evain effb42a6a4 one namespace to rule them all
svn path=/trunk/mcs/; revision=93486
2008-01-22 08:59:38 +00:00
Jb Evain 1fe475bacc 2008-01-22 Jb Evain <[email protected]>
* EnumerableMoreTest.cs: add tests by
	Andreas Noever <[email protected]>.


svn path=/trunk/mcs/; revision=93484
2008-01-22 08:52:56 +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
Sebastien Pouliot 19490180ec 2008-01-21 Sebastien Pouliot <[email protected]>
* TimeZoneInfo.TransitionTimeTest.cs: Add test case for Equals to
	validate Gendarme finding.


svn path=/trunk/mcs/; revision=93464
2008-01-22 00:46:34 +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 64eeaffa7a add new files
svn path=/trunk/mcs/; revision=93264
2008-01-18 15:05:03 +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 d634aeaad3 update csproj
svn path=/trunk/mcs/; revision=92994
2008-01-15 22:13:48 +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