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
8f4b736f29
2008-01-18 Jb Evain <[email protected] >
...
* Expression[Printer|Visitor].cs: implement UnaryPlus, Not, Negate.
svn path=/trunk/mcs/; revision=93256
2008-01-18 14:17:27 +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
Jb Evain
c60bc5dd0b
spaces to tabs
...
svn path=/trunk/mcs/; revision=93244
2008-01-18 12:11:34 +00:00
Marek Safar
d63e0b084c
No explicit return false.
...
svn path=/trunk/mcs/; revision=93235
2008-01-18 09:33:41 +00:00
Miguel de Icaza
aeff6b77be
Remove TypeCode in a few places, there is one place where its actually useful (ConstantExpression.Emit) and I dont feel like rewriting that one
...
svn path=/trunk/mcs/; revision=93232
2008-01-18 08:30:30 +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
c752ee006a
2008-01-17 Jb Evain <[email protected] >
...
* Expression.cs: implement MakeMemberAccess.
svn path=/trunk/mcs/; revision=93157
2008-01-17 15:13:59 +00:00
Jb Evain
c45a2971f7
2008-01-17 Jb Evain <[email protected] >
...
* Expression.cs, ExpressionPrinter.cs, BinaryExpression.cs:
implement ArrayIndex.
svn path=/trunk/mcs/; revision=93148
2008-01-17 13:04:32 +00:00
Jb Evain
a956f2aafc
2008-01-17 Jb Evain <[email protected] >
...
* Expression.cs: Use TypeCode for IsInt and IsNumber.
svn path=/trunk/mcs/; revision=93147
2008-01-17 12:33: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
e17b58f99b
2008-01-16 Jb Evain <[email protected] >
...
* Expression.cs, ExpressionPrinter.cs: fix call for static methods.
svn path=/trunk/mcs/; revision=93041
2008-01-16 14:14:08 +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
704defd9a4
2008-01-15 Jb Evain <[email protected] >
...
* MethodCallExpression.cs, Expression.cs
ExpressionPrinter.cs: Implement Call (Expression, ...)
svn path=/trunk/mcs/; revision=92989
2008-01-15 21:57:07 +00:00
Jb Evain
f8dd5c0ad4
2008-01-15 Jb Evain <[email protected] >
...
* Expression.cs, ConditionalExpressionExpression.cs
ExpressionPrinter.cs : implement Expression.Condition.
svn path=/trunk/mcs/; revision=92950
2008-01-15 14:20:35 +00:00
Jb Evain
8bb3e796ff
what a wonderful place to use the null coalescing operator
...
svn path=/trunk/mcs/; revision=92949
2008-01-15 14:00:06 +00:00
Jb Evain
39de6e2a83
2008-01-15 Jb Evain <[email protected] >
...
* Expression.cs,
ParameterExpression.cs,
ExpressionPrinter.cs: implement Expression.Parameter
svn path=/trunk/mcs/; revision=92947
2008-01-15 13:55:05 +00:00
Jb Evain
83e0f89a58
2008-01-15 Jb Evain <[email protected] >
...
* ExpressionPrinter.cs (VisitBinaryExpression): simple
implementation (probably misses a few cases).
svn path=/trunk/mcs/; revision=92937
2008-01-15 10:59:57 +00:00
Jb Evain
5408f0c6c1
fix a couple of StackOverflow
...
svn path=/trunk/mcs/; revision=92933
2008-01-15 10:26:46 +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
Jb Evain
814567b7ed
2008-01-14 Jb Evain <[email protected] >
...
* ExpressionPrinter.cs: print ArrayLength.
svn path=/trunk/mcs/; revision=92851
2008-01-14 12:13:41 +00:00
Jb Evain
903b17afe7
2008-01-14 Jb Evain <[email protected] >
...
* Expression.cs: TypeAs can't take value types.
* ExpressionPrinter.cs: implement TypeAs.
svn path=/trunk/mcs/; revision=92849
2008-01-14 12:04:00 +00:00
Jb Evain
d9a4688637
I hate myself, I hate myself
...
svn path=/trunk/mcs/; revision=92848
2008-01-14 11:57:02 +00:00
Jb Evain
6e7f492eb8
2008-01-14 Jb Evain <[email protected] >
...
* Expression.cs: implement TypeIs.
* ExpressionPrinter.cs: implement VisitTypeBinaryExpression.
* TypeBinaryExpression.cs: add proper ctor.
svn path=/trunk/mcs/; revision=92846
2008-01-14 11:55:47 +00:00
Jb Evain
53b914c34f
2008-01-14 Jb Evain <[email protected] >
...
* Expression.cs, ExpressionPrinter.cs: fix for Quote's type.
svn path=/trunk/mcs/; revision=92843
2008-01-14 11:43:40 +00:00
Jb Evain
604ad2679b
2008-01-14 Jb Evain <[email protected] >
...
* BinaryExpression.cs,
* Expression.cs: revert part of Miguel's last patch.
MakeBinary is expected to call the appropriate factory
methods. Whose methods that are responsible for creating
the good BinaryExpression, wether they use a custom method
or not.
svn path=/trunk/mcs/; revision=92837
2008-01-14 09:52:31 +00:00
Jb Evain
43c9311b0b
deal with power
...
svn path=/trunk/mcs/; revision=92836
2008-01-14 09:49:51 +00:00
Jb Evain
5bd9503685
2008-01-14 Jb Evain <[email protected] >
...
* Expression.cs: MakeUnary is expected to call the appropriate
factory methods.
svn path=/trunk/mcs/; revision=92834
2008-01-14 08:49:56 +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
e0d6682f0a
corcompare work
...
svn path=/trunk/mcs/; revision=92825
2008-01-13 23:16:31 +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
b0daa1b9cb
stub Expression::Lambda
...
svn path=/trunk/mcs/; revision=92667
2008-01-11 13:04:31 +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
Jb Evain
c86b0397df
2008-01-09 Jb Evain <[email protected] >
...
* Expression.cs: implement GetActionType.
svn path=/trunk/mcs/; revision=92533
2008-01-09 18:43:05 +00:00
Jb Evain
11ebdac583
2008-01-09 Jb Evain <[email protected] >
...
* Expression.cs: fix GetFuncType to return the correct type
depending on the asked arity.
svn path=/trunk/mcs/; revision=92520
2008-01-09 16:14:17 +00:00
Jb Evain
c53053a916
tabs instead of spaces
...
svn path=/trunk/mcs/; revision=92514
2008-01-09 15:52:22 +00:00
Jb Evain
5c7f4e1ded
2008-01-09 Jb Evain <[email protected] >
...
* Expression.cs: ArrayLength: only accept single
dimensional array.
svn path=/trunk/mcs/; revision=92508
2008-01-09 14:09:55 +00:00
Jb Evain
93ec050a33
2008-01-09 Jb Evain <[email protected] >
...
* Expression.cs: throw ArgumentNullException when the type
parameter of Call is null.
svn path=/trunk/mcs/; revision=92505
2008-01-09 13:58:40 +00:00
Jb Evain
c9c6e7805a
2008-01-09 Jb Evain <[email protected] >
...
* Expression.cs: make the TypeAs test pass.
svn path=/trunk/mcs/; revision=92504
2008-01-09 13:56:42 +00:00
Jb Evain
574ad2aff1
reformating
...
svn path=/trunk/mcs/; revision=92495
2008-01-09 11:44:43 +00:00
Marek Safar
6fd1d41621
spaces to tabs
...
svn path=/trunk/mcs/; revision=92467
2008-01-08 16:03:24 +00:00
Jb Evain
157e653f54
remove non sensical code
...
svn path=/trunk/mcs/; revision=91155
2007-12-12 15:15:27 +00:00
Marek Safar
cc6cda3ecf
2007-12-04 Marek Safar <[email protected] >
...
* ElementInit.cs: New implementation.
* Funclet.cs, FuncletExpression.cs, LiftExpression.cs: Removed.
* ListInitExpression.cs, MemberListBinding.cs, Expression.cs,
ExpressionType.cs, BinaryExpression.cs, NewExpression.cs: API update.
svn path=/trunk/mcs/; revision=90663
2007-12-04 12:57:54 +00:00
Federico Di Gregorio
1e4e0fa64b
Implemented another 6 Expression methods.
...
svn path=/trunk/mcs/; revision=84329
2007-08-17 20:22:05 +00:00
Federico Di Gregorio
1eee0b1015
Implemented RightShift and LeftShift.
...
svn path=/trunk/mcs/; revision=84279
2007-08-17 14:12:08 +00:00