Commit Graph
23 Commits
Author SHA1 Message Date
Jb Evain 2f7f1e3b50 2008-01-30 Jb Evain <[email protected]>
* LambdaExpression.cs, EmitContext.cs: small refactoring.
	Extract the different EmitContexts to their own file.

svn path=/trunk/mcs/; revision=94369
2008-01-30 12:51:26 +00:00
Jb Evain 08ac78e797 remove useless field
svn path=/trunk/mcs/; revision=94068
2008-01-27 18:16:19 +00:00
Jb Evain 73d31c3d57 2008-01-27 Jb Evain <[email protected]>
* LambdaExpression.cs: fix the Type of the LambdaExpressions.


svn path=/trunk/mcs/; revision=94067
2008-01-27 18:15:42 +00:00
Jb Evain 1a5e816e27 make fields private
svn path=/trunk/mcs/; revision=94060
2008-01-27 17:50:56 +00:00
Jb Evain 1953afe3d2 2008-01-22 Jb Evain <[email protected]>
* Expression.cs, ExpressionPrinter.cs, NewArrayExpression.cs:
	implement Expression.NewArrayBounds.


svn path=/trunk/mcs/; revision=93526
2008-01-22 14:01:07 +00:00
Jb Evain addb0c10a3 small refactoring
svn path=/trunk/mcs/; revision=93503
2008-01-22 10:59:22 +00:00
Jb Evain 532de54e2f small refactoring
svn path=/trunk/mcs/; revision=93502
2008-01-22 10:42:47 +00:00
Jb Evain a9cc7c971e small refactoring
svn path=/trunk/mcs/; revision=93501
2008-01-22 10:39:12 +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 70bf0fecac 2008-01-21 Miguel de Icaza <[email protected]>
* Expression.cs (BinaryCoreCheck): Add checking for a few
	operators here (to avoid doing a second pass, handles AndAlso and
	OrElse). 

	(AndAlso, OrElse): Add some code.

	* BinaryExpression.cs: Instead of using GetValueOrDefault use
	get_Value, as we already probed for the lack of value.

	Split out support for And/Or to a separate routine as the code is
	not very easy to share with the arithmetics code. 


svn path=/trunk/mcs/; revision=93471
2008-01-22 01:25:04 +00:00
Miguel de Icaza 7df54982fc Improve the helper tool, generate code twice
svn path=/trunk/mcs/; revision=93438
2008-01-21 19:53:04 +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
Jb Evain e526224822 use common params [] to IEnumerable pattern
svn path=/trunk/mcs/; revision=93247
2008-01-18 12:21:14 +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
Jb Evain 71088609e9 fresh impl
svn path=/trunk/mcs/; revision=92823
2008-01-13 22:16:25 +00:00
Jb Evain f6359e4092 make some room
svn path=/trunk/mcs/; revision=92822
2008-01-13 22:11:43 +00:00
Jb Evain c53053a916 tabs instead of spaces
svn path=/trunk/mcs/; revision=92514
2008-01-09 15:52:22 +00:00
Miguel de Icaza 7a419ba406 command line options, and dos2unix
svn path=/trunk/mcs/; revision=74904
2007-03-23 19:11:16 +00:00
Antonello Provenzano 0a4912d7a2 Implementation of the basic features of LINQ Expressions.
svn path=/trunk/mcs/; revision=74894
2007-03-23 18:03:41 +00:00
Atsushi Eno 5c0fca4cca 2007-02-03 Atsushi Enomoto <[email protected]>
* System.Core.dll.sources : added LambdaExpression.cs.

	* LambdaExpression.cs : new (stub) file.

	* IQueryable_T.cs : fixed type/member signatures (generic arguments).


svn path=/trunk/mcs/; revision=72244
2007-02-03 21:01:01 +00:00